From 794a0e27091b63f997fc829d0288cde5a4a2edbd Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 16 Jun 2019 22:21:13 +0530 Subject: Move scripts to misc --- misc/auto-completion/zsh/_nnn | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 misc/auto-completion/zsh/_nnn (limited to 'misc/auto-completion/zsh') diff --git a/misc/auto-completion/zsh/_nnn b/misc/auto-completion/zsh/_nnn new file mode 100644 index 0000000..17d1c1a --- /dev/null +++ b/misc/auto-completion/zsh/_nnn @@ -0,0 +1,25 @@ +#compdef nnn +# +# Completion definition for nnn. +# +# Author: +# Arun Prakash Jana +# + +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]' + '(-l)-l[start in light mode (fewer details)]' + '(-p)-p[copy selection to file]:file name' + '(-s)-s[use substring match for filters]' + '(-S)-S[start in disk usage analyzer mode]' + '(-v)-v[show program version and exit]' + '(-w)-w[wild load]' + '*:filename:_files' +) +_arguments -S -s $args -- cgit v1.2.3-70-g09d2