diff options
author | Michael Allen <michael@michaelallen.io> | 2015-09-17 11:03:44 +0100 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2015-09-17 11:11:48 +0100 |
commit | b4a48dd6b781e357fc513b1f6dd668d8933f3660 (patch) | |
tree | ee96a38fc6c202ffa661b589ff9e31a2754a3256 | |
parent | d2c7ed085ff711a9f34fc1b0f521bcde253f19c5 (diff) | |
download | git-sonar-b4a48dd6b781e357fc513b1f6dd668d8933f3660.tar.gz git-sonar-b4a48dd6b781e357fc513b1f6dd668d8933f3660.zip |
Switch zsh to use the new render prompt
-rwxr-xr-x | prompt.zsh | 9 | ||||
-rwxr-xr-x | radar-base.sh | 2 |
2 files changed, 2 insertions, 9 deletions
@@ -8,12 +8,5 @@ if is_repo; then autoload colors && colors prepare_zsh_colors - printf '%s' "%{$fg_bold[black]%} git:(%{$reset_color%}" - if show_remote_status $args; then - color_remote_commits - fi - readable_branch_name - color_local_commits - printf '%s' "%{$fg_bold[black]%})%{$reset_color%}" - color_changes_status + render_prompt fi diff --git a/radar-base.sh b/radar-base.sh index 9e233ea..8a7faaf 100755 --- a/radar-base.sh +++ b/radar-base.sh @@ -65,7 +65,7 @@ prepare_zsh_colors() { COLOR_BRANCH="%{${GIT_RADAR_COLOR_BRANCH:-$reset_color}%}" MASTER_SYMBOL="${GIT_RADAR_MASTER_SYMBOL:-"%{$reset_color%}$italic_m%{$reset_color%}"}" - PROMPT_FORMAT="${GIT_RADAR_FORMAT:-""}" + PROMPT_FORMAT="${GIT_RADAR_FORMAT:-" $fg_bold[grey]git:($reset_color%{remote}%{branch}%{local}$fg_bold[grey])$reset_color%{changes}"}" RESET_COLOR_LOCAL="%{${GIT_RADAR_COLOR_LOCAL_RESET:-$reset_color}%}" RESET_COLOR_REMOTE="%{${GIT_RADAR_COLOR_REMOTE_RESET:-$reset_color}%}" |