Open evakhoni opened 2 years ago
just experimenting, but maybe helpful to others..
autoload -U +X compinit && compinit autoload -U +X bashcompinit && bashcompinit _omg_completion() { local IFS=$' ' COMPREPLY=( $( env COMP_WORDS="${COMP_WORDS[*]}" COMP_CWORD=$COMP_CWORD _OMG_COMPLETE=complete $1 ) ) return 0 } complete -o default -F _omg_completion omg
result:
╰─ omg completion get machine-config projects version describe logs project use whoami
just experimenting, but maybe helpful to others..
result: