Replies: 1 comment 1 reply
-
You should do this in your quit-cd script instead of in In fact, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When
NNN_TMPFILE
is set,nnn
will write thecd
command into the tmp file:nnn/src/nnn.c
Lines 2843 to 2846 in f71b130
But even if the current directory doesn't change, the
cd
command will still be executed, which make duplicated entries in the directory stack of some shells (like zsh).How about skip this kind of
cd
by conditionally writing the command?I realized it in my personal fork:
But I know it's not portable among prevalent shells like fish.
Beta Was this translation helpful? Give feedback.
All reactions