Add back user to bash prompt
This commit is contained in:
parent
068bccca57
commit
d60dd8a0ab
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ __ps1_set() {
|
||||||
|
|
||||||
local ps=()
|
local ps=()
|
||||||
[ $exit -ne 0 ] && ps+=("$PS1_EXIT$exit")
|
[ $exit -ne 0 ] && ps+=("$PS1_EXIT$exit")
|
||||||
ps+=("$host\h")
|
ps+=("$host\u@\h")
|
||||||
ps+=("$PS1_PWD\w")
|
ps+=("$PS1_PWD\w")
|
||||||
type __git_ps1 && __git_ps1 '' '' "$PS1_GIT%s" && [ -n "$PS1" ] && ps+=("$PS1")
|
type __git_ps1 && __git_ps1 '' '' "$PS1_GIT%s" && [ -n "$PS1" ] && ps+=("$PS1")
|
||||||
[ -n "$VIRTUAL_ENV" ] && ps+=("$PS1_VENV${VIRTUAL_ENV##*/}")
|
[ -n "$VIRTUAL_ENV" ] && ps+=("$PS1_VENV${VIRTUAL_ENV##*/}")
|
||||||
|
|
Loading…
Add table
Reference in a new issue