mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-20 20:09:07 +00:00
rm -f $eval_script
Without this change, users who have "rm" aliased to "rm -i" have to confirm removal of the file after running fuck. This change allows such users to run fuck without having to do the superfluous rm confirmation.
This commit is contained in:
parent
c1b67f2514
commit
e8883429c6
@ -134,7 +134,7 @@ class Fish(Generic):
|
||||
" set -l fucked_up_command $history[1]\n"
|
||||
" thefuck $fucked_up_command > $eval_script\n"
|
||||
" . $eval_script\n"
|
||||
" rm $eval_script\n"
|
||||
" rm -f $eval_script\n"
|
||||
" if test $exit_code -ne 0\n"
|
||||
" history --delete $fucked_up_command\n"
|
||||
" end\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user