summaryrefslogtreecommitdiff
path: root/completions/_look
diff options
context:
space:
mode:
Diffstat (limited to 'completions/_look')
-rw-r--r--completions/_look6
1 files changed, 3 insertions, 3 deletions
diff --git a/completions/_look b/completions/_look
index 074e924a..9788dec5 100644
--- a/completions/_look
+++ b/completions/_look
@@ -8,10 +8,10 @@ _look()
local cur prev words cword
_init_completion || return
- if [[ $cword -eq 1 ]]; then
- COMPREPLY=( $(compgen -W '$(look "$cur" 2>/dev/null)' -- "$cur") )
+ if ((cword == 1)); then
+ COMPREPLY=($(compgen -W '$(look "$cur" 2>/dev/null)' -- "$cur"))
fi
} &&
-complete -F _look -o default look
+ complete -F _look -o default look
# ex: filetype=sh