From 1b7e80afa59eb02e380227163c916e1aa156059a Mon Sep 17 00:00:00 2001 From: Vitaly Zdanevich Date: Fri, 15 Jan 2016 11:02:23 +0300 Subject: [PATCH] simplify section about installation --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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