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

#N/A Set TF_ALIAS as an environment variable

For more info, check:

http://fishshell.com/docs/current/faq.html#faq-single-env
This commit is contained in:
Pablo Santiago Blum de Aguiar 2015-11-23 12:44:50 -02:00
parent b0adc7f2ca
commit 959680d24d

View File

@ -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'