aboutsummaryrefslogtreecommitdiffstats
path: root/misc/quitcd/quitcd.bash
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-04-29 12:09:26 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-04-29 19:20:00 +0530
commitbac4c27191b61f8d2cee4b7331b48cfba5b7b294 (patch)
treefa7d7432b8767feb54b366a8e5de9c460605ccb6 /misc/quitcd/quitcd.bash
parent64d06ccaeea8eee1040748e16ddb875f552ee6dc (diff)
downloadnnn-bac4c27191b61f8d2cee4b7331b48cfba5b7b294.tar.gz
Update scripts
Diffstat (limited to 'misc/quitcd/quitcd.bash')
-rw-r--r--misc/quitcd/quitcd.bash7
1 files changed, 6 insertions, 1 deletions
diff --git a/misc/quitcd/quitcd.bash b/misc/quitcd/quitcd.bash
index 94accd6..71abf1f 100644
--- a/misc/quitcd/quitcd.bash
+++ b/misc/quitcd/quitcd.bash
@@ -2,7 +2,12 @@ export NNN_TMPFILE="/tmp/nnn"
n()
{
- nnn -d
+ if [ -n "$1" ]; then
+ nnn -d "$1"
+ else
+ nnn -d
+ fi
+
if [ -f $NNN_TMPFILE ]; then
. $NNN_TMPFILE
rm $NNN_TMPFILE