Pārlūkot izejas kodu

Simplify argument handling

master
Arun Prakash Jana pirms 7 gadiem
vecāks
revīzija
5619ef4436
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: A75979F35C080412
3 mainītis faili ar 3 papildinājumiem un 11 dzēšanām
  1. +1
    -5
      misc/quitcd/quitcd.bash
  2. +1
    -1
      misc/quitcd/quitcd.fish
  3. +1
    -5
      misc/quitcd/quitcd.zsh

+ 1
- 5
misc/quitcd/quitcd.bash Parādīt failu

@@ -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
- 1
misc/quitcd/quitcd.fish Parādīt failu

@@ -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


+ 1
- 5
misc/quitcd/quitcd.zsh Parādīt failu

@@ -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


Notiek ielāde…
Atcelt
Saglabāt