From fcc7918f7f6897e150aaa897de0da3ab375ee9b2 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 30 Jul 2025 12:33:31 +0100 Subject: [PATCH] [zsh] Show AWS profile on the prompt if active --- zsh/.config/zsh/exports.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zsh/.config/zsh/exports.zsh b/zsh/.config/zsh/exports.zsh index 6f376ad..1d16d9c 100644 --- a/zsh/.config/zsh/exports.zsh +++ b/zsh/.config/zsh/exports.zsh @@ -4,4 +4,6 @@ HISTSIZE=2000 SAVEHIST=1000 # 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 '