summaryrefslogtreecommitdiff
path: root/.zsh-theme
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-11-03 13:06:02 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2015-11-03 13:06:02 +0100
commit6ef619c9e351d7a3a9d066c67ede58e5f4c31c18 (patch)
treed77965e6481ef1cc5093f620de00234dca92986a /.zsh-theme
parent4bf8846136cfdccc4203b72e97b3c6dc3928195f (diff)
downloaddotfiles-6ef619c9e351d7a3a9d066c67ede58e5f4c31c18.tar
dotfiles-6ef619c9e351d7a3a9d066c67ede58e5f4c31c18.tar.gz
dotfiles-6ef619c9e351d7a3a9d066c67ede58e5f4c31c18.tar.bz2
dotfiles-6ef619c9e351d7a3a9d066c67ede58e5f4c31c18.tar.xz
dotfiles-6ef619c9e351d7a3a9d066c67ede58e5f4c31c18.zip
zsh-theme
Diffstat (limited to '.zsh-theme')
-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