From 6eaf258fef2c0b7d2112c65082fe71c40de074eb Mon Sep 17 00:00:00 2001 From: pvincent Date: Thu, 2 May 2024 21:39:04 +0400 Subject: [PATCH] GIT_SYMBOL --- bash.bashrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bash.bashrc b/bash.bashrc index 9df4056..a8e25bc 100644 --- a/bash.bashrc +++ b/bash.bashrc @@ -14,6 +14,8 @@ function __prompt_command { local DIVERGENT_GIT_SYMBOL="${Yel}➾${R}" local SYNCHRONIZED_GIT_SYMBOL="${Gre}✔${R}" + local PUSHED_NEEDED_SYMBOL='⥱' + local TAG_NEEDED_SYMBOL='⤽' # set xterm title echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007" @@ -82,7 +84,7 @@ function __prompt_command { ahead=$(git rev-list --branches --not --remotes | wc -l) if [[ $ahead -ne 0 ]]; then - PS1+="${DIVERGENT_GIT_SYMBOL}|${tag_release}${Cya}↶${ahead}" + PS1+="${DIVERGENT_GIT_SYMBOL}|${tag_release}${Yel}${PUSHED_NEEDED_SYMBOL}${ahead}" else if [[ -z $tag_release ]]; then PS1+="${SYNCHRONIZED_GIT_SYMBOL}" @@ -91,7 +93,7 @@ function __prompt_command { commit_ahead=$(git log "$tag_release"..HEAD --oneline | wc -l) if [[ $commit_ahead -gt 0 ]]; then - PS1+="${DIVERGENT_GIT_SYMBOL}|${tag_release}${Yel}↟${commit_ahead}" + PS1+="${DIVERGENT_GIT_SYMBOL}|${tag_release}${Cya}${TAG_NEEDED_SYMBOL}${commit_ahead}" else PS1+="${SYNCHRONIZED_GIT_SYMBOL}|${Cya}${tag_release}" fi