nnn/scripts/auto-completion/zsh/_nnn

24 lines
632 B
Plaintext
Raw Normal View History

2017-09-02 06:53:19 +00:00
#compdef nnn
#
# Completion definition for nnn.
#
# Author:
# Arun Prakash Jana <engineerarun@gmail.com>
#
setopt localoptions noshwordsplit noksharrays
local -a args
args=(
2018-12-09 03:06:00 +00:00
'(-b)-b[bookmark key to open]:key char'
2018-12-04 03:58:04 +00:00
'(-C)-C[disable directory color]'
2017-09-02 06:53:19 +00:00
'(-e)-e[use exiftool instead of mediainfo]'
'(-h)-h[show this help and exit]'
'(-i)-i[start in navigate-as-you-type mode]'
'(-l)-l[start in light mode (fewer details)]'
2018-12-09 03:06:00 +00:00
'(-p)-p[copy selection to file]:file name'
2017-09-02 06:53:19 +00:00
'(-S)-S[start in disk usage analyzer mode]'
'(-v)-v[show program version and exit]'
2018-03-02 12:01:11 +00:00
'*:filename:_files'
2017-09-02 06:53:19 +00:00
)
_arguments -S -s $args