summaryrefslogtreecommitdiffstats
path: root/prompt.bash
diff options
context:
space:
mode:
authorMichael Allen <michael@michaelallen.io>2015-08-26 13:09:11 +0100
committerMichael Allen <michael@michaelallen.io>2015-08-26 13:09:11 +0100
commit1faeef884d3660ca4048892fef0ef78997aad821 (patch)
tree259e7dc351febff31c33c35445ca0de0d4af3c1b /prompt.bash
parenta93a5552ccb967cfc3b036e4adcecd78dc22ae0f (diff)
parent2cec6490e26d476f354cb1ee2bbef73ab94e8823 (diff)
downloadgit-sonar-1faeef884d3660ca4048892fef0ef78997aad821.tar.gz
git-sonar-1faeef884d3660ca4048892fef0ef78997aad821.zip
Merge pull request #7 from eyeofhell/master
Bash prompt line length fix
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