aboutsummaryrefslogtreecommitdiffstats
path: root/hyperterm/core
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-08-24 23:25:20 -0500
committerJesús <heckyel@hyperbola.info>2021-08-24 23:25:20 -0500
commit6f3bb88ed1160e0b7bd26c306bda9f8eb9c4fbbe (patch)
tree0d05349dca629d1bf475a355cfd7136cfc9b31ab /hyperterm/core
parent21e6d0e7abe785e397b417be2c425e3827f0c733 (diff)
downloadhyperterm-6f3bb88ed1160e0b7bd26c306bda9f8eb9c4fbbe.tar.lz
hyperterm-6f3bb88ed1160e0b7bd26c306bda9f8eb9c4fbbe.tar.xz
hyperterm-6f3bb88ed1160e0b7bd26c306bda9f8eb9c4fbbe.zip
Fix modified icon and add icon branch
Diffstat (limited to 'hyperterm/core')
-rw-r--r--hyperterm/core/git.sh17
1 files changed, 7 insertions, 10 deletions
diff --git a/hyperterm/core/git.sh b/hyperterm/core/git.sh
index 7213b14..b1fa140 100644
--- a/hyperterm/core/git.sh
+++ b/hyperterm/core/git.sh
@@ -15,8 +15,8 @@ function _symbols() {
__duplls="$(printf '%b%b' "${BOLD}${RED}" "\xE2\x96\xBC")" # ▼
__duus="$(printf '%b%b%b' "${BOLD}${CYAN}" "\x64" "\x75")" # du
__upulls="$(printf '%b%b' "${BOLD}${GREEN}" "\xE2\x96\xBD")" # ▽
- __sts="$(printf '%b%b%b' "${BOLD}${CYAN}" "\xE2\x86\x92" "\x40")" # →M
- __usts="$(printf '%b%b%b' "${BOLD}${RED}" "\xE2\x86\x90" "\x40")" # ←M
+ __sts="$(printf '%b%b%b' "${BOLD}${CYAN}" "\xE2\x86\x92" "\x4D")" # →M
+ __usts="$(printf '%b%b%b' "${BOLD}${RED}" "\xE2\x86\x90" "\x4D")" # ←M
__stusts="$(printf '%b%b%b%b' "${BOLD}${RED}" "\x3C" "\x4D" "\x3E")" # <M>
__uts="$(printf '%b%b' "${BOLD}${RED}" "\x3F")" # ?
__nfs="$(printf '%b%b' "${BOLD}${CYAN}" "\x2B")" # +
@@ -350,19 +350,16 @@ _prompt_get_git_info() {
# Import colors
_colors_bash "$@"
- # Grab the branch
- branch="$(_get_git_branch)"
+ # Grab icon and branch
+ branch=$(printf '%b' "\xEE\x82\xA0")
+ branch+=$(_get_git_branch)
# If there are any branches
if [[ -n $branch ]]; then
- # Printf the branch
- output="$branch"
-
# Add on the git status
- output="$output$(_prompt_get_git_status "$@")"
-
+ output=$(_prompt_get_git_status "$@")
# Printf our output
- printf '%b%s%b' "${BOLD}${LEMON}" "git:($output" "${BOLD}${LEMON})"
+ printf '%b%s%b' "${BOLD}${LEMON}" "git:($branch$output" "${BOLD}${LEMON})"
fi
}