summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2015-03-30 01:26:08 +0300
committerDominik Ritter <dritter03@googlemail.com>2015-03-30 01:26:08 +0300
commitaef952ec21bc07ace13f281c4743aacbddb28ac1 (patch)
treef6f1100c419a3c659ef838cc002271c645b998b0
parenta1a26b1c1065bafcdf68afc9d94d8894e9c4b315 (diff)
Added AWS segment
-rw-r--r--powerlevel9k.zsh-theme10
1 files changed, 10 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 870c503e..c03f3e41 100644
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -270,6 +270,16 @@ prompt_rbenv() {
fi
}
+# AWS Profile
+# See http://docs.aws.amazon.com/cli/latest/userguide/installing.html
+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