From b5436a2c471ad1df9bd452c1fbe898a3f42a10c4 Mon Sep 17 00:00:00 2001 From: Simon Eisenmann Date: Fri, 2 Nov 2018 20:00:56 +0100 Subject: [PATCH] Remove zsh instant mode log with -f (#854) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In some setups, rm might default to interactive promt. This change adds the -f parameter to force remove the instant mode log on exit to avoid an interactive prompt. ``` ~  rm: remove regular file '/tmp/user/1000/thefuck-script-log-bbb81260140c4b3fa18bf2097f15bd77'? ``` --- thefuck/shells/zsh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thefuck/shells/zsh.py b/thefuck/shells/zsh.py index d4ea340..da0217a 100644 --- a/thefuck/shells/zsh.py +++ b/thefuck/shells/zsh.py @@ -52,7 +52,7 @@ class Zsh(Generic): export THEFUCK_INSTANT_MODE=True; export THEFUCK_OUTPUT_LOG={log}; thefuck --shell-logger {log}; - rm {log}; + rm -f {log}; exit '''.format(log=log_path)