#611: Fix python 2 support
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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')
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user