1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-06 02:41:10 +01: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])
else:
return cd_mkdir.get_new_command(command, settings)
return "cd {0}".format(cwd)
return 'cd "{0}"'.format(cwd)
enabled_by_default = True