diff --git a/README.md b/README.md index e2f0d47..ff694b1 100644 --- a/README.md +++ b/README.md @@ -109,14 +109,15 @@ cd ~ git clone https://github.com/magicmonty/bash-git-prompt.git .bash-git-prompt ``` -- Source the file `gitprompt.sh` from `~/.bashrc` +Add to the `~/.bashrc`: +``` + source ~/.bash-git-prompt/gitprompt.sh + GIT_PROMPT_ONLY_IN_REPO=1 +``` -### Configuration +### All configs for .bashrc ```sh - # some other config in .bashrc - - # gitprompt configuration # Set config variables first GIT_PROMPT_ONLY_IN_REPO=1