mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-19 00:58:56 +00:00
add -y argument to fish function
This commit is contained in:
parent
ff5372e288
commit
a97416272c
@ -26,6 +26,9 @@ class Fish(Generic):
|
|||||||
alter_history = ''
|
alter_history = ''
|
||||||
# It is VERY important to have the variables declared WITHIN the alias
|
# It is VERY important to have the variables declared WITHIN the alias
|
||||||
return ('function {0} -d "Correct your previous console command"\n'
|
return ('function {0} -d "Correct your previous console command"\n'
|
||||||
|
' if contains -- -y $argv\n'
|
||||||
|
' set THEFUCK_REQUIRE_CONFIRMATION 0\n'
|
||||||
|
' end\n'
|
||||||
' set -l fucked_up_command $history[1]\n'
|
' set -l fucked_up_command $history[1]\n'
|
||||||
' env TF_ALIAS={0} PYTHONIOENCODING=utf-8'
|
' env TF_ALIAS={0} PYTHONIOENCODING=utf-8'
|
||||||
' thefuck $fucked_up_command | read -l unfucked_command\n'
|
' thefuck $fucked_up_command | read -l unfucked_command\n'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user