From baefc5c6f9e65806452aa7258825b1852959c1f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Tue, 17 Aug 2021 16:26:03 -0500 Subject: simply __prompt_git --- hyperterm/core/git.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'hyperterm/core/git.sh') 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 +} -- cgit v1.2.3