From ee81e21a6d9c77e9a12cda61472d57921b3a3b2b Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 16 Jun 2015 08:54:22 +0100 Subject: [PATCH] Correctly deal with paths containing spaces and special characters Resolves #21. --- README.md | 2 +- main.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f4f2406..04cbdf2 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ 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 "${GITAWAREPROMPT}/main.sh" ``` diff --git a/main.sh b/main.sh index 620d7ed..4e6c418 100644 --- a/main.sh +++ b/main.sh @@ -1,2 +1,2 @@ -source $GITAWAREPROMPT/colors.sh -source $GITAWAREPROMPT/prompt.sh +source "${GITAWAREPROMPT}/colors.sh" +source "${GITAWAREPROMPT}/prompt.sh"