Skip to content

Instantly share code, notes, and snippets.

@biroa
Forked from YOzaz/babun.zsh-theme
Created September 20, 2016 19:15
Show Gist options
  • Select an option

  • Save biroa/4ca87b74822a34f98148263d24a8208e to your computer and use it in GitHub Desktop.

Select an option

Save biroa/4ca87b74822a34f98148263d24a8208e to your computer and use it in GitHub Desktop.

Revisions

  1. Marijus Plančiūnas created this gist Aug 11, 2016.
    15 changes: 15 additions & 0 deletions babun.zsh-theme
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    local return_code="%(?..%{$FG[209]%}%? %{$reset_color%})"

    PROMPT='%{$FG[110]%}{ %c } \
    %{$FG[150]%}$( git rev-parse --abbrev-ref HEAD 2> /dev/null || echo "" )%{$reset_color%} \
    %{$FG[209]%}%(!.#.»)%{$reset_color%} '

    PROMPT2='%{$FG[209]%}\ %{$reset_color%}'

    RPS1='%{$FG[223]%}%n@%m: %{$reset_color%}\
    %{$FG[110]%}%~%{$reset_color%} ${return_code}'

    ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}:: %{$fg[yellow]%}("
    ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%} "
    ZSH_THEME_GIT_PROMPT_CLEAN=""
    ZSH_THEME_GIT_PROMPT_DIRTY="%{$FG[209]%}*%{$fg[yellow]%}"