1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-31 02:01:13 +00:00

#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

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

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