summary refs log tree commit diff
path: root/Completion/User/_look
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/User/_look')
-rw-r--r--Completion/User/_look5
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/User/_look b/Completion/User/_look
index 74e7ab447..ea53867ee 100644
--- a/Completion/User/_look
+++ b/Completion/User/_look
@@ -7,11 +7,12 @@ _arguments -C -s \
   '-t+[termination character]:termination character:' \
   '-f[case insensitive]' \
   '-d[dictionary order]' \
-  ':string:->string' && return 0
+  ':string:->string' \
+  ':dictionary file:_files -f' && return 0
 
 case "$state" in
 string)
   [[ -n "$PREFIX" ]] &&
-      _wanted values expl value compadd - $(_call values $words[1] $PREFIX)
+      _wanted values expl 'word prefix' compadd - $(_call values $words[1] $PREFIX)
   ;;
 esac