From 1e43d37d9b44b5c22e6642198e0f20c5626225be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franky=20Rodr=C3=ADguez?= Date: Sat, 6 Feb 2016 22:07:14 +0100 Subject: [PATCH] Detect script dir --- README.md | 3 +-- main.sh | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 003dd7c..f634702 100644 --- a/README.md +++ b/README.md @@ -37,8 +37,7 @@ git clone git://github.com/jimeh/git-aware-prompt.git Edit your `~/.bash_profile` or `~/.profile` and add the following to the top: ```bash -export GITAWAREPROMPT=~/.bash/git-aware-prompt -source "${GITAWAREPROMPT}/main.sh" +source ~/.bash/git-aware-prompt/main.sh ``` diff --git a/main.sh b/main.sh index 4e6c418..30570d4 100644 --- a/main.sh +++ b/main.sh @@ -1,2 +1,3 @@ +GITAWAREPROMPT=`dirname "${BASH_SOURCE[0]}"` source "${GITAWAREPROMPT}/colors.sh" source "${GITAWAREPROMPT}/prompt.sh"