mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-21 20:38:54 +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,8 +152,8 @@ 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'
|
||||
' env TF_ALIAS={0}'
|
||||
' thefuck $fucked_up_command | read -l unfucked_command\n'
|
||||
' if [ "$unfucked_command" != "" ]\n'
|
||||
' eval $unfucked_command\n'
|
||||
|
Loading…
x
Reference in New Issue
Block a user