summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xgit-base.sh6
-rwxr-xr-xprompt.bash11
2 files changed, 11 insertions, 6 deletions
diff --git a/git-base.sh b/git-base.sh
index 239e2bd..0fee704 100755
--- a/git-base.sh
+++ b/git-base.sh
@@ -333,7 +333,7 @@ bash_color_changes_status() {
changes="$staged_changes$conflicted_changes$unstaged_changes$untracked_changes"
fi
- printf %s "$changes"
+ printf "$changes"
}
zsh_color_changes_status() {
@@ -394,7 +394,7 @@ bash_color_local_commits() {
local_commits="$separator$local_ahead$green_ahead_arrow"
fi
fi
- printf %s "$local_commits"
+ printf "$local_commits"
}
zsh_color_local_commits() {
@@ -442,7 +442,7 @@ bash_color_remote_commits() {
remote="upstream $not_upstream "
fi
- printf %s "$remote"
+ printf "$remote"
}
zsh_color_remote_commits() {
diff --git a/prompt.bash b/prompt.bash
index 410989c..e39a1b1 100755
--- a/prompt.bash
+++ b/prompt.bash
@@ -4,7 +4,12 @@ dot="$(cd "$(dirname "$0")"; pwd)"
source "$dot/git-base.sh"
if is_repo; then
- git_prefix="\033[1;30mgit:(\033[0m"
- git_suffix="\033[1;30m)\033[0m"
- printf " $git_prefix$(bash_color_remote_commits;readable_branch_name;bash_color_local_commits)$git_suffix$(bash_color_changes_status)"
+ printf " \033[1;30mgit:(\033[0m"
+ bash_color_remote_commits
+ printf "\033[0;37m"
+ readable_branch_name
+ printf "\033[0m"
+ bash_color_local_commits
+ printf "\033[1;30m)\033[0m"
+ bash_color_changes_status
fi