my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
611 B

3 years ago
  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]%}$(ruby_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%}"