Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i was able to get omg autocomplete working under ZSH #73

Open
evakhoni opened this issue Mar 14, 2022 · 0 comments
Open

i was able to get omg autocomplete working under ZSH #73

evakhoni opened this issue Mar 14, 2022 · 0 comments

Comments

@evakhoni
Copy link

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          
@evakhoni evakhoni changed the title i was able to get autocomplete working under ZSH i was able to get omg autocomplete working under ZSH Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant