From d1fc86e59813c2c3d5b11508c8112936a5db7ced Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Thu, 12 Jul 2018 00:37:54 +0200 Subject: [PATCH 1/2] Add new states to context segment in README --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 90680ac8..9956acf8 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 priviledges. Read more about styling with states [here](https://github.com/bhilburn/powerlevel9k/wiki/Stylizing-Your-Prompt#special-segment-colors). + +| State | Meaning | +|---------------|----------------------------------------------------------| +| `DEFAULT` | | +| `ROOT` | You are logged in as root | +| `SUDO` | You still have elevated rights | +| `REMOTE_SUDO` | You are SSH'ed in vour machine and have elevated rights | +| `REMOTE` | You SSH'ed in your machine | + ##### date The `date` segment shows the current system date. From e95be8f2086823115548dcc1fff616ba363779b1 Mon Sep 17 00:00:00 2001 From: Ben Hilburn Date: Fri, 13 Jul 2018 13:13:12 -0400 Subject: [PATCH 2/2] Update to `context` segment README Just some minor spelling fixes. --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9956acf8..56d0c34c 100644 --- a/README.md +++ b/README.md @@ -358,15 +358,15 @@ end of 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 priviledges. Read more about styling with states [here](https://github.com/bhilburn/powerlevel9k/wiki/Stylizing-Your-Prompt#special-segment-colors). +different privileges. Read more about styling with states [here](https://github.com/bhilburn/powerlevel9k/wiki/Stylizing-Your-Prompt#special-segment-colors). | State | Meaning | |---------------|----------------------------------------------------------| -| `DEFAULT` | | -| `ROOT` | You are logged in as root | -| `SUDO` | You still have elevated rights | -| `REMOTE_SUDO` | You are SSH'ed in vour machine and have elevated rights | -| `REMOTE` | You SSH'ed in your machine | +| `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