mirror of
https://github.com/jarun/nnn.git
synced 2025-02-02 14:16:56 +00:00
Auto-completion for option -d
This commit is contained in:
parent
2e07a20d23
commit
459b2cceb8
|
@ -12,6 +12,7 @@ _nnn () {
|
|||
local -a opts opts_with_args
|
||||
opts=(
|
||||
-b
|
||||
-d
|
||||
-e
|
||||
-h
|
||||
-i
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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]'
|
||||
|
|
Loading…
Reference in a new issue