#682: Remove script log on exit

This commit is contained in:
Vladimir Iakovlev
2017-09-02 10:44:16 +02:00
parent 17b7bf8ec2
commit ff442a2eb0
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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))
+1
View File
@@ -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))