Add hostname to zsh prompt

This commit is contained in:
Eric Torres 2022-12-19 23:00:22 -08:00
parent bc0ab15ad6
commit 81229e3088

View File

@ -29,7 +29,16 @@ precmd() {
vcs_info
}
# ----- Left Prompts -----
# <user>@<host> >
#PS1='%F{blue}%n%f@%m %F{green}%3~%f > '
# <path> >
#PS1='%F{green}%3~%f %F{blue}>%f '
# <path> <host> >
PS1='%F{green}%3~%f %F{yellow}%m%f %F{blue}>%f '
# ----- Right Prompts -----
# Git and vim mode info
#RPS1='%F{green}${vim_mode}%f ${vcs_info_msg_0_} [%F{red}%?%f]'
PS1='%F{green}%3~%f %F{blue}>%f '
# Git info only
RPS1='${vcs_info_msg_0_} [%F{red}%?%f]'