Created
October 6, 2011 01:18
-
-
Save wagenet/1266232 to your computer and use it in GitHub Desktop.
peterwagenet.zsh-theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROMPT='%{$fg_bold[green]%}%n$(rvm_prompt_info) %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}%% %{$reset_color%}' | |
RPROMPT='%{$fg[cyan]%}%~%{$reset_color%}' | |
function rvm_prompt_info() { | |
ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return | |
if [[ $ruby_version == "" ]]; then | |
ruby_version="system" | |
fi | |
if [[ $ruby_version == "ruby-1.9.3-p0" ]]; then | |
else | |
echo "%{$fg[red]%}[%{$fg[yellow]%}$ruby_version%{$fg[red]%}]%{$reset_color%}" | |
fi | |
} | |
ZSH_THEME_GIT_PROMPT_PREFIX="±(%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[yellow]%}✗%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" | |
ZSH_THEME_TERM_TAB_TITLE_IDLE="%15<..<%~%<<" #15 char left truncated PWD | |
ZSH_THEME_TERM_TITLE_IDLE="" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment