#611: Fix python 2 support

This commit is contained in:
Vladimir Iakovlev
2017-03-13 23:26:57 +01:00
parent 2315929875
commit 408cb5fa09
6 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -46,6 +46,6 @@ class Bash(Generic):
config = 'bash config'
return self._create_shell_configuration(
content='eval $(thefuck --alias)',
content=u'eval $(thefuck --alias)',
path=config,
reload=u'source {}'.format(config))
+1 -1
View File
@@ -68,7 +68,7 @@ class Fish(Generic):
def how_to_configure(self):
return self._create_shell_configuration(
content=r"eval (thefuck --alias | tr '\n' ';')",
content=u"eval (thefuck --alias | tr '\n' ';')",
path='~/.config/fish/config.fish',
reload='fish')
+1 -1
View File
@@ -19,7 +19,7 @@ class Powershell(Generic):
def how_to_configure(self):
return ShellConfiguration(
content='iex "thefuck --alias"',
content=u'iex "thefuck --alias"',
path='$profile',
reload='& $profile',
can_configure_automatically=False)
+1 -1
View File
@@ -32,6 +32,6 @@ class Tcsh(Generic):
def how_to_configure(self):
return self._create_shell_configuration(
content='eval `thefuck --alias`',
content=u'eval `thefuck --alias`',
path='~/.tcshrc',
reload='tcsh')
+1 -1
View File
@@ -46,6 +46,6 @@ class Zsh(Generic):
def how_to_configure(self):
return self._create_shell_configuration(
content='eval $(thefuck --alias)',
content=u'eval $(thefuck --alias)',
path='~/.zshrc',
reload='source ~/.zshrc')