aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2018-07-13 20:15:41 +0300
committerGitHub <noreply@github.com>2018-07-13 20:15:41 +0300
commite1a420b5d20b11da108b202eb7020437869a28a8 (patch)
treeccdc75498636c676cecde1c603d2204534ab55c8
parent110a242ad4fb67546fa18c508925bbbb34289cfe (diff)
parente95be8f2086823115548dcc1fff616ba363779b1 (diff)
Merge pull request #902 from dritter/fix_context_readme
Add new states to context segment in README
-rw-r--r--README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index 90680ac8..56d0c34c 100644
--- a/README.md
+++ b/README.md
@@ -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.