diff --git a/bash-git-prompt b/bash-git-prompt index 1a44157..f04fabe 100644 --- a/bash-git-prompt +++ b/bash-git-prompt @@ -25,7 +25,7 @@ set_git_prompt_theme_icons() { DIRTY_ICON="✘" ;; 4) - BRANCH_ICON="⎇ " + BRANCH_ICON="⎇ " STAGED_ICON="o" CONFLICT_ICON="!" CHANGED_ICON="±" @@ -38,7 +38,7 @@ set_git_prompt_theme_icons() { DIRTY_ICON="✗" ;; 5) - BRANCH_ICON="::" + BRANCH_ICON=":: " STAGED_ICON="+" CONFLICT_ICON="x" CHANGED_ICON="*" @@ -177,7 +177,7 @@ actual_git_prompt_info_logic() { # ------------------------- if [[ "$GIT_PROMPT_THEME" == "2" ]]; then printf "\[\e[30;44m\]" - printf "\[\e[97;44m\] %s%s" "$BRANCH_ICON" "$branch" + printf "\[\e[97;44m\] %s%s " "$BRANCH_ICON" "$branch" ((staged > 0)) && printf " %s%d" "$STAGED_ICON" "$staged" ((conflicts > 0)) && printf " %s%d" "$CONFLICT_ICON" "$conflicts" ((changed > 0)) && printf " %s%d" "$CHANGED_ICON" "$changed" @@ -216,7 +216,7 @@ actual_git_prompt_info_logic() { ((ahead > 0)) && printf " \e[0;37m%s%d\e[0m" "$AHEAD_ICON" "$ahead" ((behind > 0)) && printf " \e[0;37m%s%d\e[0m" "$BEHIND_ICON" "$behind" ((has_remote == 0)) && printf " \e[38;5;250m%s\e[0m" "$NO_REMOTE_ICON" - ((is_clean)) && printf "\e[0;32m%s\e[0m" "$CLEAN_ICON" || printf " \e[38;5;196m%s\e[0m" "$DIRTY_ICON" + ((is_clean)) && printf " \e[0;32m%s\e[0m" "$CLEAN_ICON" || printf " \e[38;5;196m%s\e[0m" "$DIRTY_ICON" printf "\e[0;37m]\e[0m" fi }