]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/themes/eastwood.zsh-theme
88134f8e63d21ec34cdc52a4f6103e592ea237af
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / themes / eastwood.zsh-theme
1 # RVM settings
2 if [[ -s ~/.rvm/scripts/rvm ]] ; then 
3   RPS1="%{$fg[yellow]%}rvm:%{$reset_color%}%{$fg[red]%}\$(~/.rvm/bin/rvm-prompt)%{$reset_color%} $EPS1"
4 else
5   if which rbenv &> /dev/null; then
6     RPS1="%{$fg[yellow]%}rbenv:%{$reset_color%}%{$fg[red]%}\$(rbenv version | sed -e 's/ (set.*$//')%{$reset_color%} $EPS1"
7   fi
8 fi
9
10 ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[green]%}["
11 ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}"
12 ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}*%{$reset_color%}"
13 ZSH_THEME_GIT_PROMPT_CLEAN=""
14
15 # Customized git status, oh-my-zsh currently does not allow render dirty status before branch
16 git_custom_status() {
17   local cb=$(git_current_branch)
18   if [ -n "$cb" ]; then
19     echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(git_current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX"
20   fi
21 }
22
23 PROMPT='$(git_custom_status)%{$fg[cyan]%}[%~% ]%{$reset_color%}%B$%b '