Arun Prakash Jana
il y a 7 ans
Parent
révision
5619ef4436
Aucune clé connue n'a été trouvée dans la base pour cette signature
ID de la clé GPG: A75979F35C080412
3 fichiers modifiés avec
3 ajouts et
11 suppressions
-
misc/quitcd/quitcd.bash
-
misc/quitcd/quitcd.fish
-
misc/quitcd/quitcd.zsh
|
|
@@ -2,11 +2,7 @@ export NNN_TMPFILE="/tmp/nnn" |
|
|
|
|
|
|
|
n() |
|
|
|
{ |
|
|
|
if [ -n "$1" ]; then |
|
|
|
nnn "$1" |
|
|
|
else |
|
|
|
nnn |
|
|
|
fi |
|
|
|
nnn "$@" |
|
|
|
|
|
|
|
if [ -f $NNN_TMPFILE ]; then |
|
|
|
. $NNN_TMPFILE |
|
|
|
|
|
@@ -1,7 +1,7 @@ |
|
|
|
export NNN_TMPFILE="/tmp/nnn" |
|
|
|
|
|
|
|
function n --description 'support nnn quit and change directory' |
|
|
|
nnn $argv[1] |
|
|
|
nnn $argv |
|
|
|
|
|
|
|
if test -e $NNN_TMPFILE |
|
|
|
. $NNN_TMPFILE |
|
|
|
|
|
@@ -2,11 +2,7 @@ export NNN_TMPFILE="/tmp/nnn" |
|
|
|
|
|
|
|
n() |
|
|
|
{ |
|
|
|
if [ -n "$1" ]; then |
|
|
|
nnn "$1" |
|
|
|
else |
|
|
|
nnn |
|
|
|
fi |
|
|
|
nnn "$@" |
|
|
|
|
|
|
|
if [ -f $NNN_TMPFILE ]; then |
|
|
|
. $NNN_TMPFILE |
|
|
|