Auto-completion for option `-d`

This commit is contained in:
Arun Prakash Jana 2019-03-11 20:24:44 +05:30
parent 2e07a20d23
commit 459b2cceb8
No known key found for this signature in database
GPG Key ID: A75979F35C080412
3 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,7 @@ _nnn () {
local -a opts opts_with_args
opts=(
-b
-d
-e
-h
-i

View File

@ -6,6 +6,7 @@
#
complete -c nnn -s b -r -d 'bookmark key to open'
complete -c nnn -s d -d 'show hidden files'
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

@ -10,6 +10,7 @@ setopt localoptions noshwordsplit noksharrays
local -a args
args=(
'(-b)-b[bookmark key to open]:key char'
'(-d)-d[show hidden files]'
'(-e)-e[use exiftool instead of mediainfo]'
'(-h)-h[show this help and exit]'
'(-i)-i[start in navigate-as-you-type mode]'