1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-21 20:38:54 +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:
Matt Kotsenas 2016-01-05 12:04:16 -08:00
parent a0ef0efe46
commit 47df80f6b8

View File

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