mirror of
https://github.com/jarun/nnn.git
synced 2024-11-16 08:03:16 +00:00
Fix quitcd snippets for 'zsh' and 'bash'
This commit is contained in:
parent
bf28a096ba
commit
34ecf3ce13
|
@ -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
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
n()
|
||||
{
|
||||
nnn "$@"
|
||||
|
||||
NNN_TMPFILE=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd
|
||||
|
||||
nnn "$@"
|
||||
|
||||
if [ -f $NNN_TMPFILE ]; then
|
||||
. $NNN_TMPFILE
|
||||
rm $NNN_TMPFILE
|
||||
|
|
Loading…
Reference in a new issue