@ -130,6 +130,7 @@ The segments that are currently available are:
* [`chruby` ](#chruby ) - Ruby environment information using `chruby` (if one is active).
* [`chruby` ](#chruby ) - Ruby environment information using `chruby` (if one is active).
* [`rbenv` ](#rbenv ) - Ruby environment information using `rbenv` (if one is active).
* [`rbenv` ](#rbenv ) - Ruby environment information using `rbenv` (if one is active).
* [`rspec_stats` ](#rspec_stats ) - Show a ratio of test classes vs code classes for RSpec.
* [`rspec_stats` ](#rspec_stats ) - Show a ratio of test classes vs code classes for RSpec.
* `rvm` - Ruby environment information using `$GEM_HOME` and `$MY_RUBY_HOME` (if one is active).
* **Rust Segments:**
* **Rust Segments:**
* `rust_version` - Display the current rust version and [logo ](https://www.rust-lang.org/logos/rust-logo-blk.svg ).
* `rust_version` - Display the current rust version and [logo ](https://www.rust-lang.org/logos/rust-logo-blk.svg ).
* **Swift Segments:**
* **Swift Segments:**
@ -213,7 +214,9 @@ You can also change the battery icon automatically depending on the battery
level. This will override the default battery icon. In order to do this, you
level. This will override the default battery icon. In order to do this, you
need to define the `POWERLEVEL9k_BATTERY_STAGES` variable.
need to define the `POWERLEVEL9k_BATTERY_STAGES` variable.
| Variable | Default Value | Description |
| Variable | Default Value | Description |
|-------------------------------|---------------|---------------------------------------------------------------|
| `POWERLEVEL9K_BATTERY_STAGES` | Unset | A string or array, which each index indicates a charge level. |
| `POWERLEVEL9K_BATTERY_STAGES` | Unset | A string or array, which each index indicates a charge level. |
Powerlevel9k will use each index of the string or array as a stage to indicate battery
Powerlevel9k will use each index of the string or array as a stage to indicate battery
@ -254,10 +257,12 @@ As with the battery stages, you can use any number of colors and Powerlevel9k
will automatically use all of them appropriately.
will automatically use all of them appropriately.
Some example settings:
Some example settings:
| Brightness | Possible Array |
| Brightness | Possible Array |
|Bright Colors|(red1 orangered1 darkorange orange1 gold1 yellow1 yellow2 greenyellow chartreuse1 chartreuse2 green1)|
|----------------|---------------------------------------------------------------------------------------------------------------|
|Normal Colors|(red3 darkorange3 darkgoldenrod gold3 yellow3 chartreuse2 mediumspringgreen green3 green3 green4 darkgreen)|
| Bright Colors | `(red1 orangered1 darkorange orange1 gold1 yellow1 yellow2 greenyellow chartreuse1 chartreuse2 green1)` |
|Subdued Colors|(darkred orange4 yellow4 yellow4 chartreuse3 green3 green4 darkgreen)|
| Normal Colors | `(red3 darkorange3 darkgoldenrod gold3 yellow3 chartreuse2 mediumspringgreen green3 green3 green4 darkgreen)` |
| Subdued Colors | `(darkred orange4 yellow4 yellow4 chartreuse3 green3 green4 darkgreen)` |
##### command_execution_time
##### command_execution_time
@ -538,6 +543,10 @@ Variable | Default Value | Description |
|----------|---------------|-------------|
|----------|---------------|-------------|
|`POWERLEVEL9K_RBENV_ALWAYS`|'false'|Always show the `rbenv` segment, even if the local version matches the global.|
|`POWERLEVEL9K_RBENV_ALWAYS`|'false'|Always show the `rbenv` segment, even if the local version matches the global.|
| Variable | Default Value | Description |
|----------|---------------|-------------|
|`POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW`|`false`|Set to true if you wish to show the rbenv segment even if the current Ruby version is the same as the global Ruby version|
##### rspec_stats
##### rspec_stats
See [Unit Test Ratios ](#unit-test-ratios ), below.
See [Unit Test Ratios ](#unit-test-ratios ), below.