diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2017-04-29 12:09:26 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2017-04-29 19:20:00 +0530 |
commit | bac4c27191b61f8d2cee4b7331b48cfba5b7b294 (patch) | |
tree | fa7d7432b8767feb54b366a8e5de9c460605ccb6 /misc/quitcd/quitcd.bash | |
parent | 64d06ccaeea8eee1040748e16ddb875f552ee6dc (diff) | |
download | nnn-bac4c27191b61f8d2cee4b7331b48cfba5b7b294.tar.gz |
Update scripts
Diffstat (limited to 'misc/quitcd/quitcd.bash')
-rw-r--r-- | misc/quitcd/quitcd.bash | 7 |
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 |