mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-20 20:09:07 +00:00
Add Windows error message support to cd_mkdir rule
Add the Windows error message 'the system cannot find the path specified' to the list of recognized messages for cd_mkdir.
This commit is contained in:
parent
a0ef0efe46
commit
47df80f6b8
@ -8,7 +8,8 @@ from thefuck.specific.sudo import sudo_support
|
||||
@for_app('cd')
|
||||
def match(command):
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user