diff options
author | Carlo Sala <carlosalag@protonmail.com> | 2023-04-08 11:13:30 +0200 |
---|---|---|
committer | Carlo Sala <carlosalag@protonmail.com> | 2023-04-08 11:13:30 +0200 |
commit | e906a3130eb5031a2c82d9187ea17387881631db (patch) | |
tree | c8398d928d0af708e23e7197a7be15b34444a7c4 | |
parent | 9b1ef262bcc8d47a6d20b4efc673557560df6647 (diff) | |
download | zsh-e906a3130eb5031a2c82d9187ea17387881631db.tar.gz zsh-e906a3130eb5031a2c82d9187ea17387881631db.tar.bz2 zsh-e906a3130eb5031a2c82d9187ea17387881631db.zip |
fix(azure): look properly for azure config file
Closes #11606
-rw-r--r-- | plugins/azure/azure.plugin.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/azure/azure.plugin.zsh b/plugins/azure/azure.plugin.zsh index 51b54dbc1..8fec3c1f7 100644 --- a/plugins/azure/azure.plugin.zsh +++ b/plugins/azure/azure.plugin.zsh @@ -18,10 +18,10 @@ compctl -K _az_subscriptions azss # Azure prompt function azure_prompt_info() { - [[ ! -f "${AZURE_CONFIG_DIR:-$HOME/.azure/azureProfile.json}" ]] && return + [[ ! -f "${AZURE_CONFIG_DIR:-$HOME/.azure}/azureProfile.json" ]] && return # azgs is too expensive, if we have jq, we enable the prompt (( $+commands[jq] )) || return 1 - azgs=$(jq -r '.subscriptions[] | select(.isDefault==true) .name' ${AZURE_CONFIG_DIR:-$HOME/.azure/azureProfile.json}) + azgs=$(jq -r '.subscriptions[] | select(.isDefault==true) .name' "${AZURE_CONFIG_DIR:-$HOME/.azure}/azureProfile.json") echo "${ZSH_THEME_AZURE_PREFIX:=<az:}${azgs}${ZSH_THEME_AZURE_SUFFIX:=>}" } |