Skip to content

Commit

Permalink
Fix order of commands for the .bashrc
Browse files Browse the repository at this point in the history
GIT_PROMPT_ONLY_IN_REPO=1 must be done before gitprompt.sh is loaded.
  • Loading branch information
piroor committed Aug 31, 2016
1 parent 1397c02 commit 30df962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ git clone https://github.com/magicmonty/bash-git-prompt.git .bash-git-prompt --d

Add to the `~/.bashrc`:
```
source ~/.bash-git-prompt/gitprompt.sh
GIT_PROMPT_ONLY_IN_REPO=1
source ~/.bash-git-prompt/gitprompt.sh
```

### All configs for .bashrc
Expand Down

0 comments on commit 30df962

Please sign in to comment.