diff options
-rw-r--r-- | templates/.zsh/prompt.zsh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/templates/.zsh/prompt.zsh b/templates/.zsh/prompt.zsh index f98a73e..2e94acb 100644 --- a/templates/.zsh/prompt.zsh +++ b/templates/.zsh/prompt.zsh @@ -20,4 +20,15 @@ git_prompt() { fi } -export PROMPT='%F{blue}%~%f$(git_prompt) ' +dir_prompt() { + echo "%F{blue}%~%f" +} + +aws_vault_prompt() { + if [[ "${AWS_VAULT}" != "" ]] + then + echo "%F{red}${AWS_VAULT}%f " + fi +} + +export PROMPT='$(aws_vault_prompt)$(dir_prompt)$(git_prompt) ' |