From 0b08940a0eee48d5072437543ded21b9552cc5db Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Fri, 15 Nov 2013 21:22:03 +0100 Subject: [PATCH] Added possibility to clone repository anywhere rather than in the home-directory. --- prompt.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prompt.sh b/prompt.sh index 4603f75..1c9528a 100644 --- a/prompt.sh +++ b/prompt.sh @@ -1,3 +1,5 @@ +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + if [ -n "${BASH_VERSION}" ]; then # Symbols : ${is_a_git_repo_symbol:='❤'} @@ -39,7 +41,7 @@ if [ -n "${BASH_VERSION}" ]; then PS2="${yellow}→${reset} " - source base.sh + source ${DIR}/base.sh function bash_prompt() { PS1="$(build_prompt)" }