diff --git a/README.md b/README.md index 0266746..91e6452 100644 --- a/README.md +++ b/README.md @@ -37,8 +37,8 @@ git clone git://github.com/jimeh/git-aware-prompt.git Edit your `~/.bash_profile` or `~/.profile` or `~/.bashrc` (for Ubuntu) and add the following to the top: ```bash -export GITAWAREPROMPT=~/.bash/git-aware-prompt -source "${GITAWAREPROMPT}/main.sh" +# Include git-aware-prompt bash script +source ${HOME}/.bash/git-aware-prompt/main.sh ``` diff --git a/main.sh b/main.sh index 9faee96..b64eab0 100644 --- a/main.sh +++ b/main.sh @@ -1,2 +1,3 @@ +GITAWAREPROMPT=`dirname "${BASH_SOURCE[0]}"` # source "${GITAWAREPROMPT}/colors.sh" source "${GITAWAREPROMPT}/prompt.sh"