# Add a blank line before the promp precmd() { print "" } # Change user color if elevated permissions if [[ $UID == 0 || $EUID == 0 ]]; then # root USER_COLOR="red" else USER_COLOR="green" fi FQDN=`hostname -f` # Set the prompt #PROMPT="%{$fg[$USER_COLOR]%}%n@%M%{$reset_color%} %{$fg_bold[blue]%}%~%{$reset_color%} $(git_prompt_info)"$'\n'"%{$fg[$USER_COLOR]%}>%{$reset_color%} " #PROMPT='%{$fg[$USER_COLOR]%}%n@${FQDN}%{$reset_color%} %{$fg_bold[blue]%}%~%{$reset_color%}$(git_prompt_info)'$'\n''%{$fg[$USER_COLOR]%}>%{$reset_color%} ' HOST_NAME="%{$fg[$USER_COLOR]%}%n@${FQDN}%{$reset_color%}" LOCATION="%{$fg_bold[blue]%}%~%{$reset_color%}" LINE_PROMPT="%{$fg[$USER_COLOR]%}>%{$reset_color%} " NEWLINE=$'\n' PROMPT='${HOST_NAME} ${LOCATION} $(git_prompt_info) ${NEWLINE}${LINE_PROMPT}' # git prompt data ZSH_THEME_GIT_PROMPT_PREFIX="on %{$fg[magenta]%}" ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%} ✗" ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green] ✔"