1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-27 15:28:56 +00:00

: 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
thefuck/shells

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

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