aks: added Cyan as a color, and used it for untracked files. Updated README

master
Alan Stebbens 12 years ago
parent 3a97752a25
commit f60217ae2c
  1. 9
      README.md
  2. 5
      gitprompt.sh

@ -55,11 +55,12 @@ The symbols are as follows:
## Configuration ## Configuration
1. You can use ``GIT_PROMPT_START`` and ``GIT_PROMPT_END`` to tweak your prompt 1. You can use ``GIT_PROMPT_START`` and ``GIT_PROMPT_END`` to tweak your prompt
2. If you want to tweak the colors, 2. If you want to tweak the colors, currently you have to tweak it in the
currently you have to tweak it in the ``gitprompt.sh`` ``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 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 `gitstatus.py`. Both scripts do the same thing, but the bash script is a
bit more quick, and is used by default. tad bit more quick, and is used by default.
4. You can define ``prompt_callback`` function to tweak your prompt dynamicaly 4. You can define ``prompt_callback`` function to tweak your prompt dynamicaly
```sh ```sh

@ -42,6 +42,7 @@ function git_prompt_config()
local White='\[\033[37m\]' local White='\[\033[37m\]'
local Red="\[\033[0;31m\]" local Red="\[\033[0;31m\]"
local Blue="\[\033[0;34m\]" local Blue="\[\033[0;34m\]"
local Cyan="\[\033[0;36m\]"
# Default values for the appearance of the prompt. Configure at will. # Default values for the appearance of the prompt. Configure at will.
GIT_PROMPT_PREFIX="[" GIT_PROMPT_PREFIX="["
@ -52,8 +53,8 @@ function git_prompt_config()
GIT_PROMPT_CONFLICTS="${Red}" GIT_PROMPT_CONFLICTS="${Red}"
GIT_PROMPT_CHANGED="${Blue}" GIT_PROMPT_CHANGED="${Blue}"
GIT_PROMPT_REMOTE=" " GIT_PROMPT_REMOTE=" "
GIT_PROMPT_UNTRACKED="…" GIT_PROMPT_UNTRACKED="${Cyan}"
GIT_PROMPT_STASHED="⚑ " GIT_PROMPT_STASHED="${BoldBlue}"
GIT_PROMPT_CLEAN="${BoldGreen}" GIT_PROMPT_CLEAN="${BoldGreen}"
# Various variables you might want for your PS1 prompt instead # Various variables you might want for your PS1 prompt instead

Loading…
Cancel
Save