예제 #1
0
파일: history.py 프로젝트: SanketDG/thefuck
def _history_of_exists_without_current(command):
    history = get_history()
    tf_alias = thefuck_alias()
    executables = get_all_executables()
    return [line for line in _not_corrected(history, tf_alias)
            if not line.startswith(tf_alias) and not line == command.script
            and line.split(' ')[0] in executables]
예제 #2
0
def _history_of_exists_without_current(command):
    history = get_history()
    tf_alias = thefuck_alias()
    executables = get_all_executables()
    return [
        line for line in _not_corrected(history, tf_alias)
        if not line.startswith(tf_alias) and not line == command.script
        and line.split(' ')[0] in executables
    ]
예제 #3
0
파일: history.py 프로젝트: ltype/thefuck
def _history_of_exists_without_current(command):
    callables = get_all_callables()
    return [line for line in get_history()
            if line != command.script
            and line.split(' ')[0] in callables]