From 13d7a89a518dd0d7df9ca22f820fcca9af05ad32 Mon Sep 17 00:00:00 2001 From: Mario Fernandez Date: Sun, 17 Jul 2011 23:25:08 +0200 Subject: [PATCH] new theme, based on lukerandall.zsh-theme but with slightly different colors and using PWD in the prompt --- themes/sirech.zsh-theme | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 themes/sirech.zsh-theme diff --git a/themes/sirech.zsh-theme b/themes/sirech.zsh-theme new file mode 100644 index 000000000..ca7b6d8be --- /dev/null +++ b/themes/sirech.zsh-theme @@ -0,0 +1,12 @@ +# -*- mode: Shell-script-*- +# ZSH Theme +# Based on lukerandall.zsh-theme +# Modified with stuff taken from http://stevelosh.com/blog/2010/02/my-extravagant-zsh-prompt/ + +local return_code="%(?..%{$fg_bold[red]%}%? ↵%{$reset_color%})" + +PROMPT='%{$fg_bold[green]%}%n@%m%{$reset_color%} %{$fg_bold[cyan]%}${PWD/#$HOME/~}%{$reset_color%} $(git_prompt_info)%{$reset_color%}%B»%b ' +RPS1="${return_code}" + +ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}(" +ZSH_THEME_GIT_PROMPT_SUFFIX=") %{$reset_color%}"