diff options
Diffstat (limited to 'misc/quitcd')
-rw-r--r-- | misc/quitcd/quitcd.bash | 4 | ||||
-rw-r--r-- | misc/quitcd/quitcd.fish | 2 | ||||
-rw-r--r-- | misc/quitcd/quitcd.zsh | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/misc/quitcd/quitcd.bash b/misc/quitcd/quitcd.bash index 71abf1f..5248036 100644 --- a/misc/quitcd/quitcd.bash +++ b/misc/quitcd/quitcd.bash @@ -3,9 +3,9 @@ export NNN_TMPFILE="/tmp/nnn" n() { if [ -n "$1" ]; then - nnn -d "$1" + nnn "$1" else - nnn -d + nnn fi if [ -f $NNN_TMPFILE ]; then diff --git a/misc/quitcd/quitcd.fish b/misc/quitcd/quitcd.fish index f438009..59a7f1b 100644 --- a/misc/quitcd/quitcd.fish +++ b/misc/quitcd/quitcd.fish @@ -1,7 +1,7 @@ export NNN_TMPFILE="/tmp/nnn" function n --description 'support nnn quit and change directory' - nnn -d $argv[1] + nnn $argv[1] if test -e $NNN_TMPFILE . $NNN_TMPFILE diff --git a/misc/quitcd/quitcd.zsh b/misc/quitcd/quitcd.zsh index 71abf1f..5248036 100644 --- a/misc/quitcd/quitcd.zsh +++ b/misc/quitcd/quitcd.zsh @@ -3,9 +3,9 @@ export NNN_TMPFILE="/tmp/nnn" n() { if [ -n "$1" ]; then - nnn -d "$1" + nnn "$1" else - nnn -d + nnn fi if [ -f $NNN_TMPFILE ]; then |