Fix order of commands for the .bashrc

GIT_PROMPT_ONLY_IN_REPO=1 must be done before gitprompt.sh is loaded.
master
YUKI "Piro" Hiroshi 9 years ago committed by GitHub
parent 1397c02190
commit 30df96208f
  1. 2
      README.md

@ -111,8 +111,8 @@ git clone https://github.com/magicmonty/bash-git-prompt.git .bash-git-prompt --d
Add to the `~/.bashrc`: Add to the `~/.bashrc`:
``` ```
source ~/.bash-git-prompt/gitprompt.sh
GIT_PROMPT_ONLY_IN_REPO=1 GIT_PROMPT_ONLY_IN_REPO=1
source ~/.bash-git-prompt/gitprompt.sh
``` ```
### All configs for .bashrc ### All configs for .bashrc

Loading…
Cancel
Save