From 959680d24d9cfe6a37373ba040ec73033cb554d1 Mon Sep 17 00:00:00 2001 From: Pablo Santiago Blum de Aguiar Date: Mon, 23 Nov 2015 12:44:50 -0200 Subject: [PATCH] #N/A Set TF_ALIAS as an environment variable For more info, check: http://fishshell.com/docs/current/faq.html#faq-single-env --- thefuck/shells.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'