diff --git a/thefuck/shells.py b/thefuck/shells.py index 973641d..7ac79c8 100644 --- a/thefuck/shells.py +++ b/thefuck/shells.py @@ -152,9 +152,9 @@ class Fish(Generic): def app_alias(self, fuck): return ('function {0} -d "Correct your previous console command"\n' ' set -l exit_code $status\n' - ' set -x TF_ALIAS {0}\n' ' set -l fucked_up_command $history[1]\n' - ' thefuck $fucked_up_command | read -l unfucked_command\n' + ' env TF_ALIAS={0}' + ' thefuck $fucked_up_command | read -l unfucked_command\n' ' if [ "$unfucked_command" != "" ]\n' ' eval $unfucked_command\n' ' if test $exit_code -ne 0\n'