diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-11-03 13:06:02 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-11-03 13:06:02 +0100 |
commit | 6ef619c9e351d7a3a9d066c67ede58e5f4c31c18 (patch) | |
tree | d77965e6481ef1cc5093f620de00234dca92986a | |
parent | 4bf8846136cfdccc4203b72e97b3c6dc3928195f (diff) | |
download | dotfiles-6ef619c9e351d7a3a9d066c67ede58e5f4c31c18.tar dotfiles-6ef619c9e351d7a3a9d066c67ede58e5f4c31c18.tar.gz dotfiles-6ef619c9e351d7a3a9d066c67ede58e5f4c31c18.tar.bz2 dotfiles-6ef619c9e351d7a3a9d066c67ede58e5f4c31c18.tar.xz dotfiles-6ef619c9e351d7a3a9d066c67ede58e5f4c31c18.zip |
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 | |||