mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-13 01:32:30 +00:00
[zsh] Show AWS profile on the prompt if active
This commit is contained in:
@@ -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 '
|
||||
|
||||
Reference in New Issue
Block a user