diff --git a/thefuck/rules/has_exists_script.py b/thefuck/rules/has_exists_script.py new file mode 100644 index 00000000..7b5dab4c --- /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) +