summaryrefslogtreecommitdiffstats
path: root/Completion
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
parentmake _message independent of when it is called (11188) (diff)
downloadzsh-057e9700ecb3c5fce374d0afc208798b4f345ee2.tar
zsh-057e9700ecb3c5fce374d0afc208798b4f345ee2.tar.gz
zsh-057e9700ecb3c5fce374d0afc208798b4f345ee2.tar.bz2
zsh-057e9700ecb3c5fce374d0afc208798b4f345ee2.tar.lz
zsh-057e9700ecb3c5fce374d0afc208798b4f345ee2.tar.xz
zsh-057e9700ecb3c5fce374d0afc208798b4f345ee2.tar.zst
zsh-057e9700ecb3c5fce374d0afc208798b4f345ee2.zip
11190: Completion/User/_look: new completion for look.
Diffstat (limited to 'Completion')
-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