1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-06 02:41:10 +01:00

Merge branch 'encode_fix' of https://github.com/SanketDG/thefuck into SanketDG-encode_fix

This commit is contained in:
nvbn 2015-06-07 02:13:48 +03:00
commit 9c711734aa

View File

@ -105,7 +105,7 @@ class Fish(Generic):
aliases = self.get_aliases()
binary = command_script.split(' ')[0]
if binary in aliases:
return 'fish -ic "{}"'.format(command_script.replace('"', r'\"'))
return 'fish -ic "{}"'.format(command_script.replace('"', r'\"')).encode('utf8')
else:
return command_script