local cur=$2 prev=$3
local -a opts opts_with_args
opts=(
- -c
+ -C
-e
-h
-i
-v
)
opts_with_arg=(
- -c
)
# Do not complete non option names
# 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'
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]'
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"'