diff --git a/README.md b/README.md index 25af1fd..794a2a4 100644 --- a/README.md +++ b/README.md @@ -55,11 +55,12 @@ The symbols are as follows: ## Configuration 1. You can use ``GIT_PROMPT_START`` and ``GIT_PROMPT_END`` to tweak your prompt -2. If you want to tweak the colors, - currently you have to tweak it in the ``gitprompt.sh`` +2. If you want to tweak the colors, currently you have to tweak it in the + ``gitprompt.sh``. See the definitions of ``GIT_PROMPT_xxx1``, which include + various colors names. 3. The current git repo information is obtained by the script `gitstatus.sh` or - `gitstatus.py`. Both scripts do the same thing, but the bash script is a tad - bit more quick, and is used by default. + `gitstatus.py`. Both scripts do the same thing, but the bash script is a + tad bit more quick, and is used by default. 4. You can define ``prompt_callback`` function to tweak your prompt dynamicaly ```sh diff --git a/gitprompt.sh b/gitprompt.sh old mode 100644 new mode 100755 index a87e04c..de6fa98 --- a/gitprompt.sh +++ b/gitprompt.sh @@ -42,6 +42,7 @@ function git_prompt_config() local White='\[\033[37m\]' local Red="\[\033[0;31m\]" local Blue="\[\033[0;34m\]" + local Cyan="\[\033[0;36m\]" # Default values for the appearance of the prompt. Configure at will. GIT_PROMPT_PREFIX="[" @@ -52,8 +53,8 @@ function git_prompt_config() GIT_PROMPT_CONFLICTS="${Red}✖ " GIT_PROMPT_CHANGED="${Blue}✚ " GIT_PROMPT_REMOTE=" " - GIT_PROMPT_UNTRACKED="…" - GIT_PROMPT_STASHED="⚑ " + GIT_PROMPT_UNTRACKED="${Cyan}…" + GIT_PROMPT_STASHED="${BoldBlue}⚑ " GIT_PROMPT_CLEAN="${BoldGreen}✔" # Various variables you might want for your PS1 prompt instead