diff --git a/pure.zsh b/pure.zsh index 1a02398..af4cd24 100644 --- a/pure.zsh +++ b/pure.zsh @@ -52,8 +52,8 @@ prompt_pure_check_git_arrows() { command git rev-parse --abbrev-ref @'{u}' &>/dev/null || return local arrows="" - (( $(command git rev-list --right-only --count HEAD...@'{u}' 2>/dev/null) > 0 )) && arrows='⇣' - (( $(command git rev-list --left-only --count HEAD...@'{u}' 2>/dev/null) > 0 )) && arrows+='⇡' + (( $(command git rev-list --right-only --count HEAD...@'{u}' 2>/dev/null) > 0 )) && arrows="${PURE_GIT_DOWN_ARROW:-⇣}" + (( $(command git rev-list --left-only --count HEAD...@'{u}' 2>/dev/null) > 0 )) && arrows+="${PURE_GIT_UP_ARROW:-⇡}" # output the arrows [[ "$arrows" != "" ]] && echo " ${arrows}" } diff --git a/readme.md b/readme.md index 81eeb0b..d6aeb00 100644 --- a/readme.md +++ b/readme.md @@ -101,6 +101,14 @@ Time in seconds to delay git dirty checking for large repositories (git status t Defines the prompt symbol. The default value is `❯`. +### `PURE_GIT_DOWN_ARROW` + +Defines the git down arrow symbol. The default value is `⇣`. + +### `PURE_GIT_UP_ARROW` + +Defines the git up arrow symbol. The default value is `⇡`. + ## Example ```sh