Skip to content

Commit

Permalink
chore: give up compatibility with zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
shenghuang147 authored and wanlce committed Jun 14, 2024
1 parent bf102db commit 98a3812
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ _daed() {
# run cmd multi option completetion
case "${COMP_WORDS[1]}" in
run)
COMPREPLY=( $(compgen -W "$run_opts -h --help" -- "${cur}") )
COMPREPLY=( $(compgen -W "$run_opts" -- "${cur}") )
return 0
;;
esac

return 0
;;

-h|--help|-v|--version)
-h|--help)
return 0
;;
*)
Expand Down Expand Up @@ -97,9 +97,4 @@ _daed() {

}

if [[ -n ${ZSH_VERSION} ]]; then
autoload -U bashcompinit
bashcompinit
fi

complete -F _daed daed

0 comments on commit 98a3812

Please sign in to comment.