mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-25 14:28:38 +00:00
Merge branch 'master' of git://github.com/dannion/thefuck into dannion-master
This commit is contained in:
commit
50dfef1d1b
9
thefuck/rules/has_exists_script.py
Normal file
9
thefuck/rules/has_exists_script.py
Normal 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)
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user