diff options
author | Ben Burwell <ben@benburwell.com> | 2020-05-08 13:58:46 -0400 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2020-05-08 13:58:46 -0400 |
commit | 32b3a6398ca58e8e1112e34c26f3f84366e01cbf (patch) | |
tree | 421bc80b0661fe753df793c1996fa9d1b8a99d02 | |
parent | 4fb9b8a7ac962486cde6dea1b6292414667adb28 (diff) |
zsh: add $AWS_VAULT to prompt
-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) ' |