Option -c is gone

This commit is contained in:
Arun Prakash Jana 2018-12-04 09:28:04 +05:30
parent 971f0ddda1
commit 21a491e660
No known key found for this signature in database
GPG key ID: A75979F35C080412
4 changed files with 4 additions and 5 deletions

View file

@ -11,7 +11,7 @@ _nnn () {
local cur=$2 prev=$3 local cur=$2 prev=$3
local -a opts opts_with_args local -a opts opts_with_args
opts=( opts=(
-c -C
-e -e
-h -h
-i -i
@ -20,7 +20,6 @@ _nnn () {
-v -v
) )
opts_with_arg=( opts_with_arg=(
-c
) )
# Do not complete non option names # Do not complete non option names

View file

@ -5,7 +5,7 @@
# Arun Prakash Jana <engineerarun@gmail.com> # Arun Prakash Jana <engineerarun@gmail.com>
# #
complete -c nnn -s c -r -d 'specify dir color, disables if N>7' complete -c nnn -s C -d 'disable directory color'
complete -c nnn -s e -d 'use exiftool instead of mediainfo' complete -c nnn -s e -d 'use exiftool instead of mediainfo'
complete -c nnn -s h -d 'show this help and exit' complete -c nnn -s h -d 'show this help and exit'
complete -c nnn -s i -d 'start in navigate-as-you-type mode' complete -c nnn -s i -d 'start in navigate-as-you-type mode'

View file

@ -9,7 +9,7 @@
setopt localoptions noshwordsplit noksharrays setopt localoptions noshwordsplit noksharrays
local -a args local -a args
args=( args=(
'(-c)-c[specify dir color, disables if N>7]:color code' '(-C)-C[disable directory color]'
'(-e)-e[use exiftool instead of mediainfo]' '(-e)-e[use exiftool instead of mediainfo]'
'(-h)-h[show this help and exit]' '(-h)-h[show this help and exit]'
'(-i)-i[start in navigate-as-you-type mode]' '(-i)-i[start in navigate-as-you-type mode]'

View file

@ -1,3 +1,3 @@
setenv NNN_TMPFILE /tmp/nnn setenv NNN_TMPFILE /tmp/nnn
alias n 'nnn -c 2; source "$NNN_TMPFILE"; rm "$NNN_TMPFILE"' alias n 'nnn; source "$NNN_TMPFILE"; rm "$NNN_TMPFILE"'