mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-20 20:09:07 +00: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:
parent
b0adc7f2ca
commit
959680d24d
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user