Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jpohjolainen/12867f50945f4d09f75393157f13a903 to your computer and use it in GitHub Desktop.
Save jpohjolainen/12867f50945f4d09f75393157f13a903 to your computer and use it in GitHub Desktop.
azaccounts() {
OIFS=$IFS
IFS=$'\n'
reply=($(az account list |jq -r '.[].name'))
IFS=$OIFS
}
compctl -x 'c[-2,set]c[-1,-s]' -S '' -K azaccounts -- az
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment