From a5786d56313ce443f541045d4b1400c64844f620 Mon Sep 17 00:00:00 2001 From: Eric Bouchut Date: Mon, 11 Jul 2011 16:06:38 +0200 Subject: [PATCH] Added ebouchut theme --- themes/ebouchut.zsh-theme | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 themes/ebouchut.zsh-theme diff --git a/themes/ebouchut.zsh-theme b/themes/ebouchut.zsh-theme new file mode 100644 index 000000000..604cce12c --- /dev/null +++ b/themes/ebouchut.zsh-theme @@ -0,0 +1,42 @@ +# ebouchut ZSH Theme +# +# author: Eric Bouchut +# +# Left Prompt: +# username@hostname:current_directory% +# +# Right prompt when in a Git repository: +# ±‹branch_name clean_or_dirty ahead [short_sha] status› +# + +ZSH_THEME_GIT_PROMPT_PREFIX="±‹%{$fg_bold[yellow]%}" +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" + +# clean_or_dirty +ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}✔%{$reset_color%}" + +# status +ZSH_THEME_GIT_PROMPT_ADDED="%{$fg_bold[green]%}✚" +ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg_bold[magenta]%}✹" +ZSH_THEME_GIT_PROMPT_DELETED="%{$fg_bold[red]%}✖" +ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg_bold[blue]%➜" +ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg_bold[cyan]%}═" +ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg_bold[green]%}✭" + +# when ahead +ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg_bold[red]%}!" + +# short_sha +ZSH_THEME_GIT_PROMPT_SHA_BEFORE="%{$reset_color%}[" +ZSH_THEME_GIT_PROMPT_SHA_AFTER="%{$reset_color%}]" + +local username="%{$fg_bold[green]%}%n%{$reset_color%}" +local hostname="%{$fg_bold[magenta]%}%m%{$reset_color%}" +local current_dir="$fg_bold[blue]%}%~%{$reset_color%}" + +# Left prompt: username@hostname:current_directory% +PROMPT='$username@$hostname:$current_dir%# ' + +# Right Prompt: ±‹branch_name clean_or_dirty ahead [short_sha]status› +RPROMPT='$(git_prompt_info)$(git_prompt_ahead) $(git_prompt_short_sha)%{$reset_color%} $(git_prompt_status)%{$reset_color%}›'