Add back user to bash prompt

This commit is contained in:
Fernando Schauenburg 2020-03-05 11:14:16 +01:00
parent 068bccca57
commit d60dd8a0ab

View file

@ -134,7 +134,7 @@ __ps1_set() {
local ps=()
[ $exit -ne 0 ] && ps+=("$PS1_EXIT$exit")
ps+=("$host\h")
ps+=("$host\u@\h")
ps+=("$PS1_PWD\w")
type __git_ps1 && __git_ps1 '' '' "$PS1_GIT%s" && [ -n "$PS1" ] && ps+=("$PS1")
[ -n "$VIRTUAL_ENV" ] && ps+=("$PS1_VENV${VIRTUAL_ENV##*/}")