1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-05 18:31:10 +01: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:
Simon Eisenmann 2018-11-02 20:00:56 +01:00 committed by Vladimir Iakovlev
parent b08aec02f5
commit b5436a2c47

View File

@ -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)