diff --git a/zsh/prompt.zsh b/zsh/prompt.zsh index 4765323..0cc82e7 100644 --- a/zsh/prompt.zsh +++ b/zsh/prompt.zsh @@ -23,6 +23,12 @@ unpushed() { /usr/bin/git cherry -v @{upstream} 2>/dev/null } +git_prompt_info() { + ref=$(/usr/bin/git symbolic-ref HEAD 2>/dev/null) || return +# echo "(%{\e[0;33m%}${ref#refs/heads/}%{\e[0m%})" + echo "${ref#refs/heads/}" +} + need_push() { if [[ $(unpushed) == "" ]] then @@ -36,5 +42,5 @@ directory_name(){ echo "%{$fg_bold[cyan]%}%1/%\/%{$reset_color%}" } -export PROMPT=$'in $(directory_name) $(git_dirty)$(need_push)\nāžœ ' +export PROMPT=$'$(directory_name) %{$fg_bold[cyan]%}āžœ%{$reset_color%} ' export RPROMPT=$'$(git_dirty)$(need_push)'