Begining of 'alexg' theme, and core changes requred by that.

This commit is contained in:
alexg0 2009-12-13 19:21:48 -06:00
commit 3a96e67d9e
2 changed files with 28 additions and 2 deletions

15
themes/alexg.zsh-theme Normal file
View file

@ -0,0 +1,15 @@
# ZSH Theme - alexg
# Based on 'gallifrey' theme to look like
# git-prompt (http://volnitsky.com/project/git-prompt/)
#
# note: %F and %K dont work correctly on non-color terminals
local return_code="%(?,,%{$fg[red]%}%? ↵%{$reset_color%})"
local prompt_char="%B%(!,#,»)%b"
local who_where="%(!,%{$fg[magenta]%}%n@%m,%{$fg[blue]%}%m)%{$reset_color%}"
PROMPT='$(git_prompt_info abbr) $who_where %{$fg[cyan]%}%2~ %{$reset_color%}$prompt_char '
RPS1="${return_code}"
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX=" %{$reset_color%}"