Theme inspired by Zack Holman's .dotfiles prompt

This commit is contained in:
André Brás 2012-01-28 11:00:07 +00:00
commit 9ad1406cad

View file

@ -1,13 +1,14 @@
local rvm_prompt='%{$fg[yellow]%}$(rvm-prompt)%{$reset_color%}' local current_path='%{$fg_bold[cyan]%}%1/%\/%{$reset_color%}'
local current_path='%{$terminfo[bold]$fg[cyan]%} %~%{$reset_color%}' local rvm_prompt='%{$fg_bold[yellow]%}$(rvm-prompt)%{$reset_color%}'
local git_info='%{$fg_bold[white]%}$(git_prompt_info)' local git_info='$(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="at %{$fg[yellow]%}" ZSH_THEME_GIT_PROMPT_PREFIX="on %{$fg_bold[yellow]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[magenta]%} ✗" ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[magenta]%} ✗"
#ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%} ✔" ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%} ✔"
#RPROMPT="%{$fg[white]%}%n@%{$fg[white]%}%m%{$reset_color%}" RPROMPT="%{$fg_bold[grey]%}%{$reset_color%}"
PROMPT="${rvm_prompt} in${current_path} ${git_info} % %{$reset_color%}
%{$fg_bold[red]%}➜ %{$reset_color%}"
PROMPT="
${rvm_prompt} in ${current_path} ${git_info}
"