diff options
Diffstat (limited to 'hyperterm/core')
-rw-r--r-- | hyperterm/core/git.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hyperterm/core/git.sh b/hyperterm/core/git.sh index 17bb575..55814dd 100644 --- a/hyperterm/core/git.sh +++ b/hyperterm/core/git.sh @@ -330,3 +330,12 @@ _prompt_get_git_info() { printf '%b%s%b' "${BOLD}${LEMON}" "git:($output" "${BOLD}${LEMON})" fi } + +__prompt_git() { + if _prompt_is_on_git &> /dev/null; then + echo -n "${BOLD}${WHITE} on $RESET" && \ + echo -n "$(_prompt_get_git_info "$@")" && \ + echo -n "${BOLD}${RED}$(_get_git_progress)" && \ + echo -n "$RESET" + fi +} |