diff options
Diffstat (limited to '.zsh-theme')
-rw-r--r-- | .zsh-theme | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.zsh-theme b/.zsh-theme new file mode 100644 index 0000000..4ccee9e --- /dev/null +++ b/.zsh-theme | |||
@@ -0,0 +1,26 @@ | |||
1 | # ZSH Theme - Preview: http://dl.dropbox.com/u/1552408/Screenshots/2010-04-08-oh-my-zsh.png | ||
2 | |||
3 | if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi | ||
4 | if [[ -n "$SSH_CONNECTION" ]]; then HCOLOR="yellow"; else HCOLOR="green"; fi | ||
5 | return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | ||
6 | |||
7 | add_prompt_info() { | ||
8 | if [[ -n $PROMPT_INFO ]]; then | ||
9 | print "%{$fg[yellow]%}$PROMPT_INFO%{$reset_color%} " | ||
10 | fi | ||
11 | } | ||
12 | |||
13 | PROMPT='\ | ||
14 | $(add_prompt_info)\ | ||
15 | %{$fg[$NCOLOR]%}%n%{$fg[green]%}%{$reset_color%}%{$fg[cyan]%}@%{$reset_color%}%{$fg[$HCOLOR]%}%m%{$reset_color%} \ | ||
16 | %~ \ | ||
17 | $(git_prompt_info)\ | ||
18 | %{$fg[magenta]%}%(!.#.»)%{$reset_color%} ' | ||
19 | PROMPT2='%{$fg[red]%}\ %{$reset_color%}' | ||
20 | RPS1='${return_code}' | ||
21 | |||
22 | ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}±%{$fg[cyan]%}" | ||
23 | ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | ||
24 | ZSH_THEME_GIT_PROMPT_CLEAN="" | ||
25 | ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}⚡%{$reset_color%}" | ||
26 | |||