From 896bee5d878bfa1e0cbc49def4de14d1de67dc92 Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Sat, 16 Nov 2013 08:33:48 +0100 Subject: [PATCH] Moved DIR inside of if so it will only be set when running bash. --- prompt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prompt.sh b/prompt.sh index 1c9528a..688b5ef 100644 --- a/prompt.sh +++ b/prompt.sh @@ -1,6 +1,6 @@ -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - if [ -n "${BASH_VERSION}" ]; then + DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + # Symbols : ${is_a_git_repo_symbol:='❤'} : ${has_untracked_files_symbol:='∿'}