murilasso.zsh-theme 631 B

1234567891011121314
  1. local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
  2. local user_host='%{$terminfo[bold]$fg[green]%}%n@%m%{$reset_color%}'
  3. local current_dir='%{$terminfo[bold]$fg[blue]%}%~%{$reset_color%}'
  4. local rvm_ruby='%{$fg[red]%}$(rvm_prompt_info || rbenv_prompt_info)%{$reset_color%}'
  5. local git_branch='%{$fg[blue]%}$(git_prompt_info)%{$reset_color%}'
  6. PROMPT="${user_host}:${current_dir} ${rvm_ruby}
  7. ${git_branch} %B$%b "
  8. RPS1="${return_code}"
  9. ZSH_THEME_GIT_PROMPT_PREFIX=""
  10. ZSH_THEME_GIT_PROMPT_SUFFIX=""
  11. ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗%{$reset_color%}"
  12. ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}✔%{$reset_color%}"