if type ykman > /dev/null 2>&1; then _ykman_completion() { local IFS=$' ' COMPREPLY=( $( env COMP_WORDS="${COMP_WORDS[*]}" \ COMP_CWORD=$COMP_CWORD \ _YKMAN_COMPLETE=complete $1 ) ) return 0 } complete -F _ykman_completion ykman fi