1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-19 12:24:29 +00:00

Merge pull request #228 from mcarton/fix-cd-space

Fix cd command
This commit is contained in:
Vladimir Iakovlev 2015-05-29 04:04:02 +03:00
commit 3194913965

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