Segments now alphabetical in README. Broke out `aws` docs.

pull/22/head
Ben Hilburn 10 years ago
parent 576f1c0309
commit 49d503f2e6

@ -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 You can choose which segments are shown on each side. The segments that are
currently available are: currently available are:
* **aws** - The current AWS profile, if active.
* **context** - Your username and host. * **context** - Your username and host.
* **dir** - Your current working directory. * **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). * **rbenv** - Ruby environment information (if one is active).
* **status** - The return code of the previous command, and status of background jobs. * **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. * **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 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: `~/.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=<your username> export DEFAULT_USER=<your username>
#### 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=<profile_name>
### Bugs / Contact ### Bugs / Contact
If you have any requests or bug reports, please use the tracker in this Github If you have any requests or bug reports, please use the tracker in this Github

@ -271,7 +271,6 @@ prompt_rbenv() {
} }
# AWS Profile # AWS Profile
# See http://docs.aws.amazon.com/cli/latest/userguide/installing.html
prompt_aws() { prompt_aws() {
local aws_profile=$AWS_DEFAULT_PROFILE local aws_profile=$AWS_DEFAULT_PROFILE
if [[ -n $aws_profile ]]; if [[ -n $aws_profile ]];

Loading…
Cancel
Save