-
Notifications
You must be signed in to change notification settings - Fork 1
AutoComplete tips
Tristan edited this page Oct 4, 2018
·
8 revisions
Autocomplete that can be installed with:
$ complete -C /usr/local/bin/awskeyring awskeyring
To set your environment easily the following bash function helps:
awsenv() { eval "$(awskeyring env $@)"; }
And if you want autocompletion for the environment function try the following:
_awsenv_comp() {
COMPREPLY=( $(compgen -W "$(awskeyring list) --no-token" -- "${COMP_WORDS[COMP_CWORD]}" ))
}
complete -F _awsenv_comp awsenv