From 6ef619c9e351d7a3a9d066c67ede58e5f4c31c18 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 3 Nov 2015 13:06:02 +0100 Subject: zsh-theme --- .zsh-theme | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .zsh-theme (limited to '.zsh-theme') diff --git a/.zsh-theme b/.zsh-theme new file mode 100644 index 0000000..4ccee9e --- /dev/null +++ b/.zsh-theme @@ -0,0 +1,26 @@ +# ZSH Theme - Preview: http://dl.dropbox.com/u/1552408/Screenshots/2010-04-08-oh-my-zsh.png + +if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi +if [[ -n "$SSH_CONNECTION" ]]; then HCOLOR="yellow"; else HCOLOR="green"; fi +return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" + +add_prompt_info() { + if [[ -n $PROMPT_INFO ]]; then + print "%{$fg[yellow]%}$PROMPT_INFO%{$reset_color%} " + fi +} + +PROMPT='\ +$(add_prompt_info)\ +%{$fg[$NCOLOR]%}%n%{$fg[green]%}%{$reset_color%}%{$fg[cyan]%}@%{$reset_color%}%{$fg[$HCOLOR]%}%m%{$reset_color%} \ +%~ \ +$(git_prompt_info)\ +%{$fg[magenta]%}%(!.#.»)%{$reset_color%} ' +PROMPT2='%{$fg[red]%}\ %{$reset_color%}' +RPS1='${return_code}' + +ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}±%{$fg[cyan]%}" +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " +ZSH_THEME_GIT_PROMPT_CLEAN="" +ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}⚡%{$reset_color%}" + -- cgit v1.2.3