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:
parent
17b7bf8ec2
commit
ff442a2eb0
@ -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))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user