From e8883429c6456e8f398f359f49d349e6e4352247 Mon Sep 17 00:00:00 2001 From: jab Date: Fri, 2 Oct 2015 10:09:19 -0400 Subject: [PATCH] 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. --- thefuck/shells.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thefuck/shells.py b/thefuck/shells.py index 9634f1d7..4684578b 100644 --- a/thefuck/shells.py +++ b/thefuck/shells.py @@ -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"