summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Allen <michael@michaelallen.io>2015-09-16 15:37:41 +0100
committerMichael Allen <michael@michaelallen.io>2015-09-16 15:37:41 +0100
commit6b6467dd66d7d8bd7b2ac357063876f9bed3a3cb (patch)
tree125b7ae57e9a850024613f4aaca73e6a25e03c97
parent5c68ecdd5d388a4a5604c0f377c4b917eb0dcfff (diff)
downloadgit-sonar-6b6467dd66d7d8bd7b2ac357063876f9bed3a3cb.tar.gz
git-sonar-6b6467dd66d7d8bd7b2ac357063876f9bed3a3cb.zip
Use general render functions rather than zsh specific
-rwxr-xr-xradar-base.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/radar-base.sh b/radar-base.sh
index 066da99..b7231de 100755
--- a/radar-base.sh
+++ b/radar-base.sh
@@ -494,16 +494,16 @@ render_prompt() {
local_sed=""
changes_sed=""
if [[ $output =~ ^.*%{remote}.*$ ]]; then
- remote_sed="s/%{remote}/$(zsh_color_remote_commits)/"
+ remote_sed="s/%{remote}/$(color_remote_commits)/"
fi
if [[ $PROMPT_FORMAT =~ ^.*%{branch}.*$ ]]; then
- branch_sed="s/%{branch}/$(zsh_readable_branch_name)/"
+ branch_sed="s/%{branch}/$(readable_branch_name)/"
fi
if [[ $PROMPT_FORMAT =~ ^.*%{local}.*$ ]]; then
- local_sed="s/%{local}/$(zsh_color_local_commits)/"
+ local_sed="s/%{local}/$(color_local_commits)/"
fi
if [[ $PROMPT_FORMAT =~ ^.*%{changes}.*$ ]]; then
- changes_sed="s/%{changes}/$(zsh_color_changes_status)/"
+ changes_sed="s/%{changes}/$(color_changes_status)/"
fi
sed \