1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-17 21:30:07 +00:00

Segments now alphabetical in README. Broke out aws docs.

This commit is contained in:
Ben Hilburn 2015-03-29 18:32:30 -07:00
parent 576f1c0309
commit 49d503f2e6
2 changed files with 12 additions and 4 deletions

View file

@ -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=<profile_name>`
* **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=<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
If you have any requests or bug reports, please use the tracker in this Github

View file

@ -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 ]];