summaryrefslogtreecommitdiff
path: root/completions/cksfv
diff options
context:
space:
mode:
Diffstat (limited to 'completions/cksfv')
-rw-r--r--completions/cksfv8
1 files changed, 4 insertions, 4 deletions
diff --git a/completions/cksfv b/completions/cksfv
index 89ccc7b7..da404dda 100644
--- a/completions/cksfv
+++ b/completions/cksfv
@@ -5,13 +5,13 @@ _cksfv()
local cur prev words cword
_init_completion || return
- if [[ $cword -eq 1 ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
+ if ((cword == 1)); then
+ COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
return
fi
case "$prev" in
- -*C|-*g)
+ -*C | -*g)
_filedir -d
return
;;
@@ -24,6 +24,6 @@ _cksfv()
_filedir
} &&
-complete -F _cksfv cksfv
+ complete -F _cksfv cksfv
# ex: filetype=sh