From 47df80f6b8276bf5b854ca35dd59541757c9733a Mon Sep 17 00:00:00 2001 From: Matt Kotsenas Date: Tue, 5 Jan 2016 12:04:16 -0800 Subject: [PATCH] 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. --- thefuck/rules/cd_mkdir.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/thefuck/rules/cd_mkdir.py b/thefuck/rules/cd_mkdir.py index e47479e2..b37a237e 100644 --- a/thefuck/rules/cd_mkdir.py +++ b/thefuck/rules/cd_mkdir.py @@ -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