]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/themes/dstufft.zsh-theme
initial
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / themes / dstufft.zsh-theme
1 function prompt_char {
2     git branch >/dev/null 2>/dev/null && echo '±' && return
3     hg root >/dev/null 2>/dev/null && echo 'Hg' && return
4     echo '○'
5 }
6
7 function virtualenv_info {
8     [ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
9 }
10
11 PROMPT='
12 %{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%} in %{$fg_bold[green]%}%~%{$reset_color%}$(git_prompt_info)
13 $(virtualenv_info)$(prompt_char) '
14
15 ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
16 ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
17 ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}!"
18 ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}?"
19 ZSH_THEME_GIT_PROMPT_CLEAN=""