Skip to content

Commit

Permalink
Moved bg indicator; made it cyan; corrected docs
Browse files Browse the repository at this point in the history
  • Loading branch information
agkozak committed Oct 7, 2021
1 parent 7d2eca6 commit 5fd19c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ This prompt has been tested on numerous Linux and BSD distributions, as well as
- [Custom Prompt Character](#custom-prompt-character)
- [Custom Git Symbols](#custom-git-symbols)
- [Other Settings](#other-settings)
- [AGKOZAK_USER_HOST_DISPLAY](#agkozak_user_host_display)
- [AGKOZAK_BRANCH_STATUS_SEPARATOR](#agkozak_branch_status_separator)
- [AGKOZAK_SHOW_STASH](#agkozak_show_stash)
- [`AGKOZAK_USER_HOST_DISPLAY`](#agkozak_user_host_display)
- [`AGKOZAK_BRANCH_STATUS_SEPARATOR`](#agkozak_branch_status_separator)
- [`AGKOZAK_SHOW_STASH`](#agkozak_show_stash)
- [Advanced Customization](#advanced-customization)
- [Examples of agkozak Zsh Prompt Customization](#examples-of-agkozak-zsh-prompt-customization)
- [Using Basic Configuration Settings](#using-basic-configuration-settings)
Expand Down Expand Up @@ -415,23 +415,23 @@ If you prefer the [pure](https://github.com/sindresorhus/pure) symbols for the "

### Other Settings

#### AGKOZAK_USER_HOST_DISPLAY
#### `AGKOZAK_USER_HOST_DISPLAY`

![AGKOZAK_USER_HOST_DISPLAY demo](img/AGKOZAK_USER_HOST_DISPLAY.gif)

For a more streamlined prompt, you may choose to suppress the display of the username and hostname by setting

AGKOZAK_USER_HOST_DISPLAY=0

#### AGKOZAK_BRANCH_STATUS_SEPARATOR
#### `AGKOZAK_BRANCH_STATUS_SEPARATOR`

By default, a space precedes the Git branch status indicator, typically right between it and the directory name. You may eliminate the space by setting
By default, when you set `AGKOZAK_LEFT_PROMPT_ONLY=1`, a space precedes the Git branch status indicator, typically right between it and the directory name. You may eliminate the space by setting

AGKOZAK_BRANCH_STATUS_SEPARATOR=''

Alternatively, you may set `AGKOZAK_BRANCH_STATUS_SEPARATOR` to any other character or characters that you prefer.

#### AGKOZAK_SHOW_STASH
#### `AGKOZAK_SHOW_STASH`

If you prefer not to have stashed changes displayed, you may set `AGKOZAK_SHOW_STASH=0`.

Expand Down Expand Up @@ -591,7 +591,7 @@ AGKOZAK_CUSTOM_SYMBOLS=( '⇣⇡' '⇣' '⇡' '+' 'x' '!' '>' '?' )
AGKOZAK_USER_HOST_DISPLAY=0
```

### Using AGKOZAK_CUSTOM_PROMPT and AGKOZAK_CUSTOM_RPROMPT
### Using `AGKOZAK_CUSTOM_PROMPT` and `AGKOZAK_CUSTOM_RPROMPT`

#### My "Zenburn" Custom Prompt

Expand Down
4 changes: 2 additions & 2 deletions agkozak-zsh-prompt.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ fi
: ${AGKOZAK_COLORS_PROMPT_CHAR:=default}
: ${AGKOZAK_COLORS_CMD_EXEC_TIME:=default}
: ${AGKOZAK_COLORS_VIRTUALENV:=green}
: ${AGKOZAK_COLORS_BG_STRING:=yellow}
: ${AGKOZAK_COLORS_BG_STRING:=cyan}

# Whether or not to display the Git status in the left prompt (default: off)
: ${AGKOZAK_LEFT_PROMPT_ONLY:=0}
Expand Down Expand Up @@ -974,7 +974,6 @@ _agkozak_prompt_strings() {
else
# The color left prompt
AGKOZAK[PROMPT]=''
AGKOZAK[PROMPT]+='%(11V.%F{${AGKOZAK_COLORS_BG_STRING:-yellow}}%11v${AGKOZAK_BG_STRING:-j}%f .)'
AGKOZAK[PROMPT]+='%(?..%B%F{${AGKOZAK_COLORS_EXIT_STATUS:-red}}(%?%)%f%b )'
AGKOZAK[PROMPT]+='%(9V.%F{${AGKOZAK_COLORS_CMD_EXEC_TIME:-default}}${AGKOZAK_CMD_EXEC_TIME_CHARS[1]}%9v${AGKOZAK_CMD_EXEC_TIME_CHARS[2]}%f .)'
if (( AGKOZAK_USER_HOST_DISPLAY )); then
Expand All @@ -984,6 +983,7 @@ _agkozak_prompt_strings() {
if (( ${AGKOZAK_SHOW_VIRTUALENV:-1} )); then
AGKOZAK[PROMPT]+='%(10V. %F{${AGKOZAK_COLORS_VIRTUALENV:-green}}${AGKOZAK_VIRTUALENV_CHARS[1]-[}%10v${AGKOZAK_VIRTUALENV_CHARS[2]-]}%f.)'
fi
AGKOZAK[PROMPT]+='%(11V. %F{${AGKOZAK_COLORS_BG_STRING:-cyan}}%11v${AGKOZAK_BG_STRING:-j}%f.)'
if (( ${AGKOZAK_LEFT_PROMPT_ONLY:-0} )); then
AGKOZAK[PROMPT]+='%(3V.%F{${AGKOZAK_COLORS_BRANCH_STATUS:-yellow}}%3v%f.)'
fi
Expand Down

0 comments on commit 5fd19c6

Please sign in to comment.