From 43fde64fb3726b58c5a9744917a5eebc18dbd233 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Lindstr=C3=B6m?= Date: Thu, 5 Oct 2017 15:38:36 +0700 Subject: [PATCH] Use new temp file for each run of 'n' alias --- scripts/quitcd/quitcd.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/quitcd/quitcd.bash b/scripts/quitcd/quitcd.bash index 5c12ae23..9e87d723 100644 --- a/scripts/quitcd/quitcd.bash +++ b/scripts/quitcd/quitcd.bash @@ -1,7 +1,7 @@ -export NNN_TMPFILE="$(mktemp -u nnn.XXXXXXXX)" - n() { + export NNN_TMPFILE="$(mktemp -u nnn.XXXXXXXX)" + nnn "$@" if [ -f $NNN_TMPFILE ]; then