about summary refs log tree commit diff
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
parente42717d18f331489e4c5fcdaefe7edbb3f58ac96 (diff)
downloadzsh-057e9700ecb3c5fce374d0afc208798b4f345ee2.tar.gz
zsh-057e9700ecb3c5fce374d0afc208798b4f345ee2.tar.xz
zsh-057e9700ecb3c5fce374d0afc208798b4f345ee2.zip
11190: Completion/User/_look: new completion for look.
-rw-r--r--ChangeLog4
-rw-r--r--Completion/User/_look18
2 files changed, 22 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6b655052a..8f92ba468 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-05-05  Tanaka Akira  <akr@zsh.org>
+
+	* 11190: Completion/User/_look: new completion for look.
+
 2000-05-05  Peter Stephenson  <pws@cambridgesiliconradio.com>
 
 	* 11185: Etc/CONTRIBUTORS: updated for 3.1.7.
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