mirror of
https://github.com/jarun/nnn.git
synced 2024-11-16 16:13:16 +00:00
28 lines
776 B
Plaintext
28 lines
776 B
Plaintext
#compdef nnn
|
|
#
|
|
# Completion definition for nnn.
|
|
#
|
|
# Author:
|
|
# Arun Prakash Jana <engineerarun@gmail.com>
|
|
#
|
|
|
|
setopt localoptions noshwordsplit noksharrays
|
|
local -a args
|
|
args=(
|
|
'(-b)-b[bookmark key to open]:key char'
|
|
'(-d)-d[start in detail mode]'
|
|
'(-e)-e[use exiftool instead of mediainfo]'
|
|
'(-H)-H[show hidden files]'
|
|
'(-i)-i[start in navigate-as-you-type mode]'
|
|
'(-n)-n[use version compare to sort files]'
|
|
'(-o)-o[open files only on Enter]'
|
|
'(-p)-p[copy selection to file]:file name'
|
|
'(-s)-s[use substring match for filters]'
|
|
'(-S)-S[start in disk usage analyzer mode]'
|
|
'(-t)-t[disable dir auto-select]'
|
|
'(-v)-v[show program version and exit]'
|
|
'(-h)-h[show program help]'
|
|
'*:filename:_files'
|
|
)
|
|
_arguments -S -s $args
|