Przeglądaj źródła

Update scripts

master
Arun Prakash Jana 7 lat temu
rodzic
commit
bac4c27191
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: A75979F35C080412
4 zmienionych plików z 15 dodań i 4 usunięć
  1. +1
    -1
      README.md
  2. +6
    -1
      misc/quitcd/quitcd.bash
  3. +2
    -1
      misc/quitcd/quitcd.fish
  4. +6
    -1
      misc/quitcd/quitcd.zsh

+ 1
- 1
README.md Wyświetl plik

@@ -59,7 +59,7 @@ Have fun with it! PRs are welcome. Check out [#1](https://github.com/jarun/nnn/i
- Super-easy navigation with roll-over at edges
- Jump HOME or back to the last visited directory (as usual!)
- Jump to initial dir, chdir prompt, cd ..... (with . as PWD)
- Search-as-you-type
- Filter directory contents with search-as-you-type
- Desktop opener integration to handle mime types
- Customizable bash script nlay to handle known file types
- Disk usage analyzer mode


+ 6
- 1
misc/quitcd/quitcd.bash Wyświetl plik

@@ -2,7 +2,12 @@ export NNN_TMPFILE="/tmp/nnn"

n()
{
nnn -d
if [ -n "$1" ]; then
nnn -d "$1"
else
nnn -d
fi

if [ -f $NNN_TMPFILE ]; then
. $NNN_TMPFILE
rm $NNN_TMPFILE


+ 2
- 1
misc/quitcd/quitcd.fish Wyświetl plik

@@ -1,7 +1,8 @@
export NNN_TMPFILE="/tmp/nnn"

function n --description 'support nnn quit and change directory'
nnn -d
nnn -d $argv[1]

if test -e $NNN_TMPFILE
. $NNN_TMPFILE
rm $NNN_TMPFILE


+ 6
- 1
misc/quitcd/quitcd.zsh Wyświetl plik

@@ -2,7 +2,12 @@ export NNN_TMPFILE="/tmp/nnn"

n()
{
nnn -d
if [ -n "$1" ]; then
nnn -d "$1"
else
nnn -d
fi

if [ -f $NNN_TMPFILE ]; then
. $NNN_TMPFILE
rm $NNN_TMPFILE


Ładowanie…
Anuluj
Zapisz