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]
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 ]
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]