mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-22 12:58:33 +00:00
Merge pull request #423 from MattKotsenas/bugfix/cd_mkdir
Add Windows error message support to cd_mkdir rule
This commit is contained in:
commit
1b12cd85e9
@ -8,7 +8,8 @@ from thefuck.specific.sudo import sudo_support
|
|||||||
@for_app('cd')
|
@for_app('cd')
|
||||||
def match(command):
|
def match(command):
|
||||||
return (('no such file or directory' in command.stderr.lower()
|
return (('no such file or directory' in command.stderr.lower()
|
||||||
or 'cd: can\'t cd to' in command.stderr.lower()))
|
or 'cd: can\'t cd to' in command.stderr.lower()
|
||||||
|
or 'the system cannot find the path specified.' in command.stderr.lower()))
|
||||||
|
|
||||||
|
|
||||||
@sudo_support
|
@sudo_support
|
||||||
|
Loading…
x
Reference in New Issue
Block a user