about summary refs log tree commit diff
path: root/Completion/User
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-05-05 11:33:28 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-05-05 11:33:28 +0000
commit057e9700ecb3c5fce374d0afc208798b4f345ee2 (patch)
treee2574b5d9925dcddfdc3cce4d1aa4fb0291c9288 /Completion/User
parente42717d18f331489e4c5fcdaefe7edbb3f58ac96 (diff)
downloadzsh-057e9700ecb3c5fce374d0afc208798b4f345ee2.tar.gz
zsh-057e9700ecb3c5fce374d0afc208798b4f345ee2.tar.xz
zsh-057e9700ecb3c5fce374d0afc208798b4f345ee2.zip
11190: Completion/User/_look: new completion for look.
Diffstat (limited to 'Completion/User')
-rw-r--r--Completion/User/_look18
1 files changed, 18 insertions, 0 deletions
diff --git a/Completion/User/_look b/Completion/User/_look
new file mode 100644
index 000000000..14d6285b6
--- /dev/null
+++ b/Completion/User/_look
@@ -0,0 +1,18 @@
+#compdef look
+
+local context state line
+typeset -A opt_args
+
+_arguments -s \
+  '-t+[termination character]:termination character:' \
+  '-f[case insensitive]' \
+  '-d[dictionary order]' \
+  ':string:->string'
+
+case "$state" in
+string)
+  if [[ -n "$PREFIX" ]]; then
+    compadd - $(_call values $words[1] $PREFIX)
+  fi
+  ;;
+esac