comparison oh-my-zsh/custom/themes/custom.zsh-theme @ 136:ce3f4f32d1b5

Moved custom zsh theme to custom folder in oh-my-zsh
author zegervdv <zegervdv@me.com>
date Sun, 05 Oct 2014 18:39:02 +0200
parents
children 7a4e97f44baa
comparison
equal deleted inserted replaced
135:ff0f692ad70c 136:ce3f4f32d1b5
1 function get_pwd() {
2 echo "${PWD/$HOME/~}"
3 }
4
5 eval my_gray='$FG[237]'
6 eval my_orange='$FG[214]'
7
8
9 local git=$(git_prompt_info)
10 if [ ${#git} != 0 ]; then
11 ((git=${#git} - 10))
12 else
13 git=0
14 fi
15
16 local my_prompt_name='%n'
17 [[ "$SSH_CONNECTION" != '' ]] && my_prompt_name='%n@%m'
18
19 PROMPT='%{$fg[cyan]%}$my_prompt_name%{$reset_color%} in %{$fg[yellow]%}%~%b%{$reset_color%}
20 %{$reset_color%}%(?.%{$fg[white]%}.%{$fg[red]%})→ %{$reset_color%}'
21
22
23 RPROMPT='$my_gray$(git_prompt_info) $(git_prompt_status)%{$reset_color%}%'
24
25 ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} U"
26 ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%} A"
27 ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} D"
28 ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[magenta]%} R"
29 ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[blue]%} M"
30 ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[yellow]%} U"
31
32 ZSH_THEME_GIT_PROMPT_PREFIX="${my_gray}"
33 ZSH_THEME_GIT_PROMPT_CLEAN=""
34 ZSH_THEME_GIT_PROMPT_DIRTY="%{$reset_color%}"
35 ZSH_THEME_GIT_PROMPT_SUFFIX="$my_gray%{$reset_color%}"
36