]> git.rmz.io Git - dotfiles.git/blob - zsh/themes/af-magic.zsh-theme
cleanup custom folder
[dotfiles.git] / zsh / themes / af-magic.zsh-theme
1 # af-magic.zsh-theme
2 #
3 # Author: Andy Fleming
4 # URL: http://andyfleming.com/
5 # Repo: https://github.com/andyfleming/oh-my-zsh
6 # Direct Link: https://github.com/andyfleming/oh-my-zsh/blob/master/themes/af-magic.zsh-theme
7 #
8 # Created on: June 19, 2012
9 # Last modified on: June 20, 2012
10
11
12
13 if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
14 local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
15
16 # primary prompt
17 PROMPT='$FG[237]------------------------------------------------------------%{$reset_color%}
18 $FG[032]%~\
19 $(git_prompt_info) \
20 $FG[105]%(!.#.»)%{$reset_color%} '
21 PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
22 RPS1='${return_code}'
23
24
25 # color vars
26 eval my_gray='$FG[237]'
27 eval my_orange='$FG[214]'
28
29 # right prompt
30 RPROMPT='$my_gray%n@%m%{$reset_color%}%'
31
32 # git settings
33 ZSH_THEME_GIT_PROMPT_PREFIX="$FG[075](branch:"
34 ZSH_THEME_GIT_PROMPT_CLEAN=""
35 ZSH_THEME_GIT_PROMPT_DIRTY="$my_orange*%{$reset_color%}"
36 ZSH_THEME_GIT_PROMPT_SUFFIX="$FG[075])%{$reset_color%}"