[zsh] Show AWS profile on the prompt if active

This commit is contained in:
Andrew Williams
2025-07-30 12:33:31 +01:00
parent ce9bfd8224
commit fcc7918f7f

View File

@@ -4,4 +4,6 @@ HISTSIZE=2000
SAVEHIST=1000 SAVEHIST=1000
# Prompt # Prompt
export PS1="%F{8}[%F{white}%n@%m%F{8}] (%F{white}%1~%F{8}) %F{white}%#%f " setopt PROMPT_SUBST
export AWS_PROFILE_DISPLAY=''
export PS1='%F{8}[%F{white}%n@%m%F{8}] (%F{white}%1~%F{8}) %F{yellow}$AWS_PROFILE_DISPLAY%F{white} %#%f '