diff --git a/thefuck/rules/has_exists_script.py b/thefuck/rules/has_exists_script.py new file mode 100644 index 0000000..7b5dab4 --- /dev/null +++ b/thefuck/rules/has_exists_script.py @@ -0,0 +1,9 @@ +import os + +def match(command, settings): + exist = os.path.exists(command.script) + return exist + +def get_new_command(command, settings): + return './{}'.format(command.script) +