nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 1cefc326e310f8aa22eee9264cc7b85ba5d8934a
parent f6edcc41b90f9c6b79d190599465bbb4ce837a7c
Author: Arun <engineerarun@gmail.com>
Date:   Fri, 16 Sep 2022 23:28:59 +0530

Merge pull request #1491 from PatrickF1/patch-1

slightly improve n.fish
Diffstat:
Mmisc/quitcd/quitcd.fish | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/misc/quitcd/quitcd.fish b/misc/quitcd/quitcd.fish @@ -4,11 +4,9 @@ function n --wraps nnn --description 'support nnn quit and change directory' # Block nesting of nnn in subshells - if test -n "$NNNLVL" - if [ (expr $NNNLVL + 0) -ge 1 ] - echo "nnn is already running" - return - end + if test -n "$NNNLVL" -a "$NNNLVL" -ge 1 + echo "nnn is already running" + return end # The behaviour is set to cd on quit (nnn checks if NNN_TMPFILE is set)