From 49d503f2e6ae423b9ac28e23aaa83279b8e1428b Mon Sep 17 00:00:00 2001 From: Ben Hilburn Date: Sun, 29 Mar 2015 18:32:30 -0700 Subject: [PATCH] Segments now alphabetical in README. Broke out `aws` docs. --- README.md | 15 ++++++++++++--- powerlevel9k.zsh-theme | 1 - 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 531accd1..fcbff8e2 100644 --- a/README.md +++ b/README.md @@ -58,14 +58,14 @@ You then need to select this theme in your `~/.zshrc`: You can choose which segments are shown on each side. The segments that are currently available are: +* **aws** - The current AWS profile, if active. * **context** - Your username and host. * **dir** - Your current working directory. -* **vcs** - Information about this `git` or `hg` repository (if you are in one). +* **history** - The command number for the current line. * **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=` * **time** - System time. +* **vcs** - Information about this `git` or `hg` repository (if you are in one). To specify which segments you want, just add the following variables to your `~/.zshrc`. If you don't customize this, the below configuration is the default: @@ -89,6 +89,15 @@ elements (it is by default), and define a `DEFAULT_USER` in your `~/.zshrc`: export DEFAULT_USER= +#### AWS Profile + +If you would like to display the [current AWS +profile](http://docs.aws.amazon.com/cli/latest/userguide/installing.html), add +the `aws` segment to one of the prompts, and define `AWS_DEFAULT_PROFILE` in +your `~/.zshrc`: + + export AWS_DEFAULT_PROFILE= + ### Bugs / Contact If you have any requests or bug reports, please use the tracker in this Github diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 38951efa..7ebbe027 100644 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -271,7 +271,6 @@ prompt_rbenv() { } # 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 ]];