about summary refs log tree commit diff
diff options
context:
space:
mode:
-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