From ff442a2eb0a69df80bc5c721541b62858a18096f Mon Sep 17 00:00:00 2001 From: Vladimir Iakovlev Date: Sat, 2 Sep 2017 10:44:16 +0200 Subject: [PATCH] #682: Remove `script` log on exit --- thefuck/shells/bash.py | 1 + thefuck/shells/zsh.py | 1 + 2 files changed, 2 insertions(+) diff --git a/thefuck/shells/bash.py b/thefuck/shells/bash.py index e0e6ea79..73b7f5bd 100644 --- a/thefuck/shells/bash.py +++ b/thefuck/shells/bash.py @@ -41,6 +41,7 @@ class Bash(Generic): export THEFUCK_INSTANT_MODE=True; export THEFUCK_OUTPUT_LOG={log}; script -feq {log}; + rm {log}; exit '''.format(log='/tmp/thefuck-script-log-{}'.format(uuid4().hex)) diff --git a/thefuck/shells/zsh.py b/thefuck/shells/zsh.py index 8492e9f7..7f435565 100644 --- a/thefuck/shells/zsh.py +++ b/thefuck/shells/zsh.py @@ -40,6 +40,7 @@ class Zsh(Generic): export THEFUCK_INSTANT_MODE=True; export THEFUCK_OUTPUT_LOG={log}; script -feq {log}; + rm {log}; exit '''.format(log='/tmp/thefuck-script-log-{}'.format(uuid4().hex))