diff --git a/themes/peterhoeg.zsh-theme b/themes/peterhoeg.zsh-theme index f52f6510b..804b937d9 100644 --- a/themes/peterhoeg.zsh-theme +++ b/themes/peterhoeg.zsh-theme @@ -3,15 +3,16 @@ ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}" ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}*%{$reset_color%}" ZSH_THEME_GIT_PROMPT_CLEAN="" -#Customized git status, oh-my-zsh currently does not allow render dirty status before branch git_custom_status() { local cb=$(current_branch) if [ -n "$cb" ]; then - echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX" + echo "%{$fg[green]%}[$(current_branch)]%{$reset_color%}" + #Customized git status, oh-my-zsh currently does not allow render dirty status before branch + # echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX" fi } -#rbenv and git settings -RPS1='$(git_custom_status)%{$fg[red]%}[`rbenv_prompt_info`]%{$reset_color%} $EPS1' +#git and rbenv +RPS1='$(git_custom_status)[`rbenv_prompt_info`]`battery_pct_prompt` $EPS1' PROMPT='%{$fg[cyan]%}[%~% ]%(?.%{$fg[green]%}.%{$fg[red]%})%B$%b '