| None | None | ![](https://cloud.githubusercontent.com/assets/1544760/12183451/40ec4016-b58f-11e5-9b9e-74e2b2f0b8b3.png) | At the root of your home folder |
| None | None | ![](https://cloud.githubusercontent.com/assets/1544760/12369315/8a5d762c-bbf5-11e5-8a20-ca1179f48d6c.png) | Within a subfolder of your home directory |
| None | None | ![](https://cloud.githubusercontent.com/assets/1544760/12183452/40f79286-b58f-11e5-9b8c-ed1343a07b08.png) | Outside of your home folder |
# truncate the middle part
To turn off these icons you could set these variables to an empty string.
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_middle"
# truncate from right, leaving the first X characters untouched
| None | None | ![](https://cloud.githubusercontent.com/assets/1544760/12183451/40ec4016-b58f-11e5-9b9e-74e2b2f0b8b3.png) | At the root of your home folder |
| None | None | ![](https://cloud.githubusercontent.com/assets/1544760/12369315/8a5d762c-bbf5-11e5-8a20-ca1179f48d6c.png) | Within a subfolder of your home directory |
| None | None | ![](https://cloud.githubusercontent.com/assets/1544760/12183452/40f79286-b58f-11e5-9b8c-ed1343a07b08.png) | Outside of your home folder |
To turn off these icons you could set these variables to an empty string.
POWERLEVEL9K_HOME_ICON=''
POWERLEVEL9K_HOME_SUB_ICON=''
POWERLEVEL9K_FOLDER_ICON=''
##### ip
##### ip
This segment shows you your current internal IP address. It tries to examine
This segment shows you your current internal IP address. It tries to examine
@ -226,7 +239,9 @@ all currently used network interfaces and prints the first address it finds.
In the case that this is not the right IP address you can specify the correct
In the case that this is not the right IP address you can specify the correct
network interface by setting:
network interface by setting:
POWERLEVEL9K_IP_INTERFACE="eth0"
| Variable | Default Value | Description |
|----------|---------------|-------------|
|`POWERLEVEL9K_IP_INTERFACE`|None|The NIC for which you wish to display the IP address. Example: `eth0`.|
##### rspec_stats
##### rspec_stats
@ -234,20 +249,19 @@ See [Unit Test Ratios](#unit-test-ratios), below.
##### status
##### status
This segment shows the return code of the last command. By default, this
This segment shows the return code of the last command.
segment will always print, but you can customize it to only print if there
is an error by setting the following variable in your `~/.zshrc`.
POWERLEVEL9K_STATUS_VERBOSE=false
| Variable | Default Value | Description |
|----------|---------------|-------------|
|`POWERLEVEL9K_STATUS_VERBOSE`|`true`|Set to false if you wish to hide this
segment when the last command completed successfully.|
##### ram
##### ram
By default this segment shows you free RAM and used Swap. If you want to show
| Variable | Default Value | Description |
only one value, you can specify `POWERLEVEL9K_RAM_ELEMENTS` and set it to either
|----------|---------------|-------------|
`ram_free` or `swap_used`. Full example:
|`POWERLEVEL9K_RAM_ELEMENTS`|Both|Specify `ram_free` or `swap_used` to only show
one or the other rather than both.|
# Show only used swap:
POWERLEVEL9K_RAM_ELEMENTS=(swap_used)
##### symphony2_tests
##### symphony2_tests
@ -255,9 +269,11 @@ See [Unit Test Ratios](#unit-test-ratios), below.
##### time
##### time
By default the time is show in 'H:M:S' format. If you want to change it,
| Variable | Default Value | Description |
just set another format in your `~/.zshrc`. As an example, this is a reversed
|----------|---------------|-------------|
time format:
|`POWERLEVEL9K_TIME_FORMAT`|`'H:M:S'`|ZSH time format to use in this segment.|
As an example, if you wanted a reversed time format, you would use this:
# Reversed time format
# Reversed time format
POWERLEVEL9K_TIME_FORMAT='%D{%S:%M:%H}'
POWERLEVEL9K_TIME_FORMAT='%D{%S:%M:%H}'
@ -270,22 +286,14 @@ segment, as well:
##### vcs
##### vcs
By default, the `vcs` segment will provide quite a bit of information. If you
By default, the `vcs` segment will provide quite a bit of information. Further
would also like for it to display the current hash / changeset, simply define
customization is provided via:
`POWERLEVEL9K_SHOW_CHANGESET` in your `~/.zshrc`. If activated, it will show
the first 12 characters of the changeset id. To change the amount of characters,
set `POWERLEVEL9K_CHANGESET_HASH_LENGTH` to any value you want.
# enable the vcs segment in general
POWERLEVEL9K_SHOW_CHANGESET=true
# just show the 6 first characters of changeset
POWERLEVEL9K_CHANGESET_HASH_LENGTH=6
You can also disable the branch icon in your prompt by setting
| Variable | Default Value | Description |
`POWERLEVEL9K_HIDE_BRANCH_ICON` to `true`:
|----------|---------------|-------------|
|`POWERLEVEL9K_HIDE_BRANCH_ICON`|`false`|Set to `true` to hide the branch icon from the segment.|
# Hide the branch icon
|`POWERLEVEL9K_SHOW_CHANGESET`|`false`|Set to `true` to display the hash / changeset in the segment.|
POWERLEVEL9K_HIDE_BRANCH_ICON=true
|`POWERLEVEL9K_CHANGESET_HASH_LENGTH`|`12`|How many characters of the hash / changeset to display in the segment.|
**vcs Symbols**
**vcs Symbols**
@ -315,12 +323,10 @@ you are using the [ZSH Line Editor](http://zsh.sourceforge.net/Doc/Release/Zsh-L
(VI mode). You can enable this either by `.zshrc` configuration or using a plugin, like
(VI mode). You can enable this either by `.zshrc` configuration or using a plugin, like