mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-18 19:22:32 +01:00
Merge pull request #423 from MattKotsenas/bugfix/cd_mkdir
Add Windows error message support to cd_mkdir rule
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user