diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2017-09-02 12:23:19 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2017-09-02 12:23:19 +0530 |
commit | 564eafbeb333bd5b81e4ecb46cd798a21544d852 (patch) | |
tree | bf6fa36db9945a0685124d38f837870439d0ccc2 /scripts/auto-completion/zsh/_nnn | |
parent | 277cf66097209b0f56312e11a82dd3db437df1a0 (diff) | |
download | nnn-564eafbeb333bd5b81e4ecb46cd798a21544d852.tar.gz |
Add auto-completion scripts
Diffstat (limited to 'scripts/auto-completion/zsh/_nnn')
-rw-r--r-- | scripts/auto-completion/zsh/_nnn | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/auto-completion/zsh/_nnn b/scripts/auto-completion/zsh/_nnn new file mode 100644 index 0000000..8dfe053 --- /dev/null +++ b/scripts/auto-completion/zsh/_nnn @@ -0,0 +1,22 @@ +#compdef nnn +# +# Completion definition for nnn. +# +# Author: +# Arun Prakash Jana <engineerarun@gmail.com> +# + +setopt localoptions noshwordsplit noksharrays +local -a args +args=( + '(-c)-c[specify dir color, disables if N>7]:color code' + '(-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)]' + '(-p)-p[specify custom nlay]:path to nlay' + '(-S)-S[start in disk usage analyzer mode]' + '(-v)-v[show program version and exit]' + '*: :_guard "^-*" keyword' +) +_arguments -S -s $args |