Use new temp file for each run of 'n' alias

This commit is contained in:
Björn Lindström 2017-10-05 15:38:36 +07:00 committed by GitHub
parent a288553f1b
commit 43fde64fb3

View file

@ -1,7 +1,7 @@
export NNN_TMPFILE="$(mktemp -u nnn.XXXXXXXX)"
n() n()
{ {
export NNN_TMPFILE="$(mktemp -u nnn.XXXXXXXX)"
nnn "$@" nnn "$@"
if [ -f $NNN_TMPFILE ]; then if [ -f $NNN_TMPFILE ]; then