summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rw-r--r--powerlevel9k.zsh-theme13
1 files changed, 11 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index af7ecb4a..bffa7123 100644
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -29,7 +29,7 @@ VCS_UNSTAGED_ICON='●'
VCS_STAGED_ICON='✚'
################################################################
-# vcs_info settings for git
+# vcs_info settings
################################################################
setopt prompt_subst
@@ -203,7 +203,7 @@ prompt_dir() {
# Virtualenv: current working virtualenv
# More information on virtualenv (Python):
-# https://virtualenv.pypa.io/en/latest/virtualenv.html
+# https://virtualenv.pypa.io/en/latest/
prompt_virtualenv() {
local virtualenv_path="$VIRTUAL_ENV"
if [[ -n $virtualenv_path && -n $VIRTUAL_ENV_DISABLE_PROMPT ]]; then
@@ -270,6 +270,15 @@ prompt_rbenv() {
fi
}
+# AWS Profile
+prompt_aws() {
+ local aws_profile=$AWS_DEFAULT_PROFILE
+ if [[ -n $aws_profile ]];
+ then
+ $1_prompt_segment red white "AWS: $aws_profile"
+ fi
+}
+
# Main prompt
build_left_prompt() {
if (( ${#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS} == 0 )); then