local ret_status="%(?:%{$fg_bold[blue]%}Kevin %{$fg_bold[green]%}➜ :%{$fg_bold[blue]%}Kevin %{$fg_bold[red]%}➜ )" #function git_prompt_info() { # ref=$(git symbolic-ref HEAD 2> /dev/null) || return # echo "$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX$(parse_git_dirty)" #} function get_pwd(){ git_root=$PWD while [[ $git_root != / && ! -e $git_root/.git ]]; do git_root=$git_root:h done if [[ $git_root = / ]]; then unset git_root prompt_short_dir=%~ else parent=${git_root%\/*} prompt_short_dir=${PWD#$parent/} fi echo $prompt_short_dir } PROMPT='${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)' ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[magenta]%}" ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[yellow]%}✗ %{$reset_color%}" ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}✓ %{$reset_color%}" #ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}[git:" #ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}" #ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}+ %{$reset_color%}" #ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}"