summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zsh-theme26
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
3if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
4if [[ -n "$SSH_CONNECTION" ]]; then HCOLOR="yellow"; else HCOLOR="green"; fi
5return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
6
7add_prompt_info() {
8 if [[ -n $PROMPT_INFO ]]; then
9 print "%{$fg[yellow]%}$PROMPT_INFO%{$reset_color%} "
10 fi
11}
12
13PROMPT='\
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%} '
19PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
20RPS1='${return_code}'
21
22ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}±%{$fg[cyan]%}"
23ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
24ZSH_THEME_GIT_PROMPT_CLEAN=""
25ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}⚡%{$reset_color%}"
26