Close #100 PR: PURE_PROMPT_SYMBOL added.

This commit is contained in:
Kanstantsin Kamkou
2014-12-31 13:39:05 +07:00
committed by Sindre Sorhus
parent ea12ed343b
commit f38e463b3c
2 changed files with 5 additions and 1 deletions

View File

@@ -121,7 +121,7 @@ prompt_pure_setup() {
[[ $UID -eq 0 ]] && prompt_pure_username='%F{white}%n%F{242}@%m ' [[ $UID -eq 0 ]] && prompt_pure_username='%F{white}%n%F{242}@%m '
# prompt turns red if the previous command didn't exit with 0 # prompt turns red if the previous command didn't exit with 0
PROMPT='%(?.%F{magenta}.%F{red})%f ' PROMPT="%(?.%F{magenta}.%F{red})${PURE_PROMPT_SYMBOL:-}%f "
} }
prompt_pure_setup "$@" prompt_pure_setup "$@"

View File

@@ -89,6 +89,10 @@ Set `PURE_GIT_PULL=0` to prevent Pure from checking whether the current Git remo
Set `PURE_GIT_UNTRACKED_DIRTY=0` to not include untracked files in dirtiness check. Only really useful on extremely huge repos like the WebKit repo. Set `PURE_GIT_UNTRACKED_DIRTY=0` to not include untracked files in dirtiness check. Only really useful on extremely huge repos like the WebKit repo.
### `PURE_PROMPT_SYMBOL`
Defines the prompt symbol. The default value is ``.
## Example ## Example
```sh ```sh