From c2c3953c876f8a51f4d50de78bfe9170406c7c62 Mon Sep 17 00:00:00 2001 From: Philibert OLLIER Date: Tue, 11 Nov 2014 03:12:02 +0100 Subject: [PATCH] Chris theme Another theme to oh my zsh by a 42 school student --- themes/chris.zsh-theme | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 themes/chris.zsh-theme diff --git a/themes/chris.zsh-theme b/themes/chris.zsh-theme new file mode 100644 index 000000000..1b38ab4f2 --- /dev/null +++ b/themes/chris.zsh-theme @@ -0,0 +1,16 @@ +#autoload -U colors && colors +PROMPT='%B%F{$parens_col}%{$fg_bold[green]%}(%(?:%{$fg_bold[yellow]%}^_^:%{$fg_bold[red]%}X_X)%{$fg_bold[green]%}) - (%{$fg[white]%}%n@%m%{$fg_bold[green]%}) - (%{$fg_bold[white]%}jobs:%(0j.%j.)%{$fg_bold[green]%}) - (%{$fg_bold[white]%}%~%{$fg_bold[green]%}) - (%{$reset_color%}$(git_prompt_info)%{$fg_bold[white]%}%T%{$fg_bold[green]%}) +----> %{$fg[white]%}%{$reset_color%}' + +ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[white]%}" +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}%{$fg_bold[green]%}) - (" +ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}!" +ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}?" +ZSH_THEME_GIT_PROMPT_CLEAN="" + + +case $TERM in + xterm*) + precmd () {print -Pn "\e]0;%n@%m: %~\a"} + ;; +esac