diff options
author | Pavel Fokin <fokinpv@gmail.com> | 2019-07-08 20:13:52 +0300 |
---|---|---|
committer | Pavel Fokin <fokinpv@gmail.com> | 2019-07-08 20:29:32 +0300 |
commit | 34ecf3ce13c94fec468b1a056ec11b801c9853d4 (patch) | |
tree | 579d7e77fd0f24d5753dc85bb214660b403026df /misc/quitcd/quitcd.bash | |
parent | bf28a096ba3a4180d7590c94516f792b8702c2d3 (diff) | |
download | nnn-34ecf3ce13c94fec468b1a056ec11b801c9853d4.tar.gz |
Fix quitcd snippets for 'zsh' and 'bash'
Diffstat (limited to 'misc/quitcd/quitcd.bash')
-rw-r--r-- | misc/quitcd/quitcd.bash | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/quitcd/quitcd.bash b/misc/quitcd/quitcd.bash index 3f9f7fc..15b9f42 100644 --- a/misc/quitcd/quitcd.bash +++ b/misc/quitcd/quitcd.bash @@ -1,9 +1,9 @@ n() { - nnn "$@" - NNN_TMPFILE=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd + nnn "$@" + if [ -f $NNN_TMPFILE ]; then . $NNN_TMPFILE rm -f $NNN_TMPFILE > /dev/null |