mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-31 02:01:13 +00:00
Remove zsh instant mode log with -f (#854)
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'? ```
This commit is contained in:
parent
b08aec02f5
commit
b5436a2c47
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user