aboutsummaryrefslogtreecommitdiffstats
path: root/misc/auto-completion/zsh/_nnn
diff options
context:
space:
mode:
Diffstat (limited to 'misc/auto-completion/zsh/_nnn')
-rw-r--r--misc/auto-completion/zsh/_nnn25
1 files changed, 25 insertions, 0 deletions
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 <engineerarun@gmail.com>
+#
+
+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