Arun Prakash Jana
7 years ago
No known key found for this signature in database
GPG Key ID: A75979F35C080412
3 changed files with
3 additions and
11 deletions
-
misc/quitcd/quitcd.bash
-
misc/quitcd/quitcd.fish
-
misc/quitcd/quitcd.zsh
|
@@ -2,11 +2,7 @@ export NNN_TMPFILE="/tmp/nnn" |
|
|
|
|
|
|
|
|
n() |
|
|
n() |
|
|
{ |
|
|
{ |
|
|
if [ -n "$1" ]; then |
|
|
|
|
|
nnn "$1" |
|
|
|
|
|
else |
|
|
|
|
|
nnn |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
nnn "$@" |
|
|
|
|
|
|
|
|
if [ -f $NNN_TMPFILE ]; then |
|
|
if [ -f $NNN_TMPFILE ]; then |
|
|
. $NNN_TMPFILE |
|
|
. $NNN_TMPFILE |
|
|
|
@@ -1,7 +1,7 @@ |
|
|
export NNN_TMPFILE="/tmp/nnn" |
|
|
export NNN_TMPFILE="/tmp/nnn" |
|
|
|
|
|
|
|
|
function n --description 'support nnn quit and change directory' |
|
|
function n --description 'support nnn quit and change directory' |
|
|
nnn $argv[1] |
|
|
|
|
|
|
|
|
nnn $argv |
|
|
|
|
|
|
|
|
if test -e $NNN_TMPFILE |
|
|
if test -e $NNN_TMPFILE |
|
|
. $NNN_TMPFILE |
|
|
. $NNN_TMPFILE |
|
|
|
@@ -2,11 +2,7 @@ export NNN_TMPFILE="/tmp/nnn" |
|
|
|
|
|
|
|
|
n() |
|
|
n() |
|
|
{ |
|
|
{ |
|
|
if [ -n "$1" ]; then |
|
|
|
|
|
nnn "$1" |
|
|
|
|
|
else |
|
|
|
|
|
nnn |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
nnn "$@" |
|
|
|
|
|
|
|
|
if [ -f $NNN_TMPFILE ]; then |
|
|
if [ -f $NNN_TMPFILE ]; then |
|
|
. $NNN_TMPFILE |
|
|
. $NNN_TMPFILE |
|
|