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.

15 lines
684 B

3 years ago
  1. if [ "$USERNAME" = "root" ]; then CARETCOLOR="red"; else CARETCOLOR="magenta"; fi
  2. local return_code="%(?..%{$fg_bold[red]%}:( %?%{$reset_color%})"
  3. PROMPT='
  4. %{$fg_bold[cyan]%}%n%{$reset_color%}%{$fg[yellow]%}@%{$reset_color%}%{$fg_bold[blue]%}%m%{$reset_color%}:%{${fg_bold[green]}%}%~%{$reset_color%}$(git_prompt_info)
  5. %{${fg[$CARETCOLOR]}%}%# %{${reset_color}%}'
  6. RPS1='${return_code} %D - %*'
  7. ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[magenta]%}^%{$reset_color%}%{$fg_bold[yellow]%}"
  8. ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
  9. ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%} ±"
  10. ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ?"
  11. ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[red]%} ♥"