1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-25 21:40:08 +00:00

Merge pull request #902 from dritter/fix_context_readme

Add new states to context segment in README
This commit is contained in:
Ben Hilburn 2018-07-13 13:15:41 -04:00 committed by GitHub
commit e1a420b5d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -357,6 +357,17 @@ end of the hostname.
|`POWERLEVEL9K_ALWAYS_SHOW_USER`|false|Always show the username, but conditionalize the hostname.|
|`POWERLEVEL9K_CONTEXT_TEMPLATE`|%n@%m|Default context prompt (username@machine). Refer to the [ZSH Documentation](http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html) for all possible expansions, including deeper host depths.|
This segment can have different states. They might help you to visualize your
different privileges. Read more about styling with states [here](https://github.com/bhilburn/powerlevel9k/wiki/Stylizing-Your-Prompt#special-segment-colors).
| State | Meaning |
|---------------|----------------------------------------------------------|
| `DEFAULT` | You are a normal user |
| `ROOT` | You are the root user |
| `SUDO` | You are using elevated rights |
| `REMOTE_SUDO` | You are SSH'ed into the machine and have elevated rights |
| `REMOTE` | You are SSH'ed into the machine |
##### date
The `date` segment shows the current system date.