1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-21 20:38:54 +00:00

Fix cd command

Fix #226
This commit is contained in:
mcarton 2015-05-28 23:28:46 +02:00
parent a5aadc6e90
commit 237f43ebdb

View File

@ -47,7 +47,7 @@ def get_new_command(command, settings):
cwd = os.path.join(cwd, best_matches[0]) cwd = os.path.join(cwd, best_matches[0])
else: else:
return cd_mkdir.get_new_command(command, settings) return cd_mkdir.get_new_command(command, settings)
return "cd {0}".format(cwd) return 'cd "{0}"'.format(cwd)
enabled_by_default = True enabled_by_default = True