From d89b35ad7c2b26cb46dccf3ea98efd8a338df5fd Mon Sep 17 00:00:00 2001 From: Alan Stebbens Date: Thu, 28 Aug 2014 00:20:00 -0700 Subject: [PATCH] aks: make the prompt vars all global --- git-prompt-colors.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/git-prompt-colors.sh b/git-prompt-colors.sh index 686804c..56afa14 100644 --- a/git-prompt-colors.sh +++ b/git-prompt-colors.sh @@ -1,4 +1,17 @@ # These are the color definitions used by gitprompt.sh + + declare -g GIT_PROMPT_PREFIX + declare -g GIT_PROMPT_SUFFIX + declare -g GIT_PROMPT_SEPARATOR + declare -g GIT_PROMPT_BRANCH + declare -g GIT_PROMPT_STAGED + declare -g GIT_PROMPT_CONFLICTS + declare -g GIT_PROMPT_CHANGED + declare -g GIT_PROMPT_REMOTE + declare -g GIT_PROMPT_UNTRACKED + declare -g GIT_PROMPT_STASHED + declare -g GIT_PROMPT_CLEAN + GIT_PROMPT_PREFIX="[" # start of the git info string GIT_PROMPT_SUFFIX="]" # the end of the git info string GIT_PROMPT_SEPARATOR="|" # separates each item