diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2015-03-30 04:26:08 +0300 |
---|---|---|
committer | Ben Hilburn <bhilburn@gmail.com> | 2015-03-30 04:26:08 +0300 |
commit | 576f1c0309fe3232af5b8fac78405f954e452a99 (patch) | |
tree | 2cc2d65d3ee49ffea78c23fa0ee652a6f2b1c39f | |
parent | aed16e54b4fa832debe272f91c477dd25bc2c9e3 (diff) | |
parent | 836abccb26108679fd820873425bd93e9a0371c4 (diff) |
Merge remotebranch 'dritter/dritter/aws_segment'
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | powerlevel9k.zsh-theme | 10 |
2 files changed, 11 insertions, 0 deletions
@@ -64,6 +64,7 @@ currently available are: * **rbenv** - Ruby environment information (if one is active). * **status** - The return code of the previous command, and status of background jobs. * **history** - The command number for the current line. +* **aws** - The current AWS profile, if you exported it with `export AWS_DEFAULT_PROFILE=<profile_name>` * **time** - System time. To specify which segments you want, just add the following variables to your diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 90686dfb..38951efa 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 |