summaryrefslogtreecommitdiff
path: root/git-prompt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git-prompt.sh')
-rwxr-xr-xgit-prompt.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/git-prompt.sh b/git-prompt.sh
index c59195f..118ba6e 100755
--- a/git-prompt.sh
+++ b/git-prompt.sh
@@ -307,10 +307,10 @@ set_shell_label() {
#################################################################### WHO_WHERE
# [[user@]host[-tty]]
- if [[ -n $id || -n $host ]] ; then
+ if [[ -n $id || -n $host || -n $special_env ]] ; then
[[ -n $id && -n $host ]] && at='@' || at=''
- color_who_where="${id}${host:+$host_color$at$host}${tty:+ $tty}"
- plain_who_where="${id}$at$host"
+ color_who_where="${special_env:+($special_env) }${id}${host:+$host_color$at$host}${tty:+ $tty}"
+ plain_who_where="${special_env:+($special_env) }${id}$at$host"
# add trailing " "
color_who_where="$color_who_where "