From 3eb42ee261226bb83970149c2def7a1974bc2bd1 Mon Sep 17 00:00:00 2001 From: Chris Leishman Date: Tue, 2 Aug 2011 18:47:57 +0200 Subject: [PATCH] Right-prompt theme for minimum clutter --- themes/rprompt.zsh-theme | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 themes/rprompt.zsh-theme diff --git a/themes/rprompt.zsh-theme b/themes/rprompt.zsh-theme new file mode 100644 index 000000000..d90f7d067 --- /dev/null +++ b/themes/rprompt.zsh-theme @@ -0,0 +1,21 @@ +# Right-prompt theme for minimum clutter by Chris Leishman +# +# See screenshot at http://ompldr.org/vOXE5Yw + +local host='%{$fg[magenta]%}%m%{$reset_color%}' +local pwd='%{$fg[blue]%}%(4~|../|)%3~%{$reset_color%}' +local rvm='%{$fg[green]%}‹$(rvm-prompt i v g)›%{$reset_color%}' +local jobs='%(1j|%{$fg[green]%}[%j]%{$reset_color%}|)' +local git_branch='$(git_prompt_status)%{$reset_color%}$(git_prompt_info)%{$reset_color%}' + +ZSH_THEME_GIT_PROMPT_PREFIX="%%%{$fg[green]%}" +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}✗%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_CLEAN="" + +PROMPT="${jobs}%# " +RPROMPT="${host}:${pwd}${git_branch}" + +export LSCOLORS="exdxgxgxfxGxCxBxGxExDx" +export LS_COLORS="di=34:ln=33:so=36:pi=36:ex=35:bd=1:cd=1:su=1:sg=1:tw=1:ow=1:" +zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}