summaryrefslogtreecommitdiffstats
path: root/prompt.bash
diff options
context:
space:
mode:
authorGrigory Petrov <grigory.v.p@gmail.com>2015-08-26 14:30:13 +0300
committerGrigory Petrov <grigory.v.p@gmail.com>2015-08-26 14:30:13 +0300
commit0fe65ed830b5d1cdc5189230139b52f4c8aacfbc (patch)
treeea98b0ef90d2982f4fb44de448eafa3b2bb1c1ba /prompt.bash
parenta93a5552ccb967cfc3b036e4adcecd78dc22ae0f (diff)
downloadgit-sonar-0fe65ed830b5d1cdc5189230139b52f4c8aacfbc.tar.gz
git-sonar-0fe65ed830b5d1cdc5189230139b52f4c8aacfbc.zip
bash prompt length fix: zero-length chars must be placed between \[ and \]
Diffstat (limited to 'prompt.bash')
-rwxr-xr-xprompt.bash8
1 files changed, 4 insertions, 4 deletions
diff --git a/prompt.bash b/prompt.bash
index d577087..4ceaf22 100755
--- a/prompt.bash
+++ b/prompt.bash
@@ -4,12 +4,12 @@ dot="$(cd "$(dirname "$0")"; pwd)"
source "$dot/radar-base.sh"
if is_repo; then
- printf " \033[1;30mgit:(\033[0m"
+ printf " \[\033[1;30m\]git:(\[\033[0m\]"
bash_color_remote_commits
- printf "\033[0;37m"
+ printf "\[\033[0;37m\]"
readable_branch_name
- printf "\033[0m"
+ printf "\[\033[0m\]"
bash_color_local_commits
- printf "\033[1;30m)\033[0m"
+ printf "\[\033[1;30m\])\[\033[0m\]"
bash_color_changes_status
fi