Skip to content

Commit f52a483

Browse files
committed
bashrc: add hostname after username
Signed-off-by: Icenowy Zheng <[email protected]>
1 parent bd5aee1 commit f52a483

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bashrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ type _vcs_status &>/dev/null || ! echo _vcs_status not declared, making stub.. |
101101
# Well, forget it.
102102

103103
if [[ "$EUID" == 0 ]] ; then
104-
PS1="\[$RED\]\u \[$NORMAL\][ \W\$(_vcs_status) ]\[$RED\] \$(_ret_prompt) \[$NORMAL\]"
104+
PS1="\[$RED\]\u@\h \[$NORMAL\][ \W\$(_vcs_status) ]\[$RED\] \$(_ret_prompt) \[$NORMAL\]"
105105
else
106-
PS1="\[$GREEN\]\u \[$NORMAL\][ \W\$(_vcs_status) ]\[$GREEN\] \$(_ret_prompt) \[$NORMAL\]"
106+
PS1="\[$GREEN\]\u@\h \[$NORMAL\][ \W\$(_vcs_status) ]\[$GREEN\] \$(_ret_prompt) \[$NORMAL\]"
107107
fi
108108

109109

0 commit comments

Comments
 (0)