1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-13 22:28:33 +00:00

add a rule to run the script you enter by add './' in command's prefix

This commit is contained in:
dannion 2015-04-20 19:48:27 +08:00
parent ef20a68d56
commit 2b08a136b5

View File

@ -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)