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 -a opts opts_with_args
opts=(
-c
-C
-e
-h
-i
@ -20,7 +20,6 @@ _nnn () {
-v
)
opts_with_arg=(
-c
)
# Do not complete non option names

View File

@ -5,7 +5,7 @@
# 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 h -d 'show this help and exit'
complete -c nnn -s i -d 'start in navigate-as-you-type mode'

View File

@ -9,7 +9,7 @@
setopt localoptions noshwordsplit noksharrays
local -a 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]'
'(-h)-h[show this help and exit]'
'(-i)-i[start in navigate-as-you-type mode]'

View File

@ -1,3 +1,3 @@
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"'