commit 450649bee9cfa56261f5613ea01c8dda289dc8e1
parent fc9a408ecf04c82843aaf8de624a8306cfc83273
Author: spacehobo <spacehobo@web>
Date: Sat, 16 May 2026 20:22:26 +0200
angle brackets for sudo/doas user
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/spacehobo.mdwn b/spacehobo.mdwn
@@ -26,7 +26,7 @@ else
PS1='\$ '
type -t __git_ps1 > /dev/null && PS1='$(__git_ps1 "{%s}")'$PS1
PS1='${SSH_CONNECTION:+\h:}\w'
- PS1='${_tty:-X}]:+\u${DOAS_USER:+($DOAS_USER)}${SUDO_USER:+($SUDO_USER)}@}'$PS1
+ PS1='${_tty:-X}]:+\u${DOAS_USER:+<$DOAS_USER>}${SUDO_USER:+<$SUDO_USER>}@}'$PS1
PS1='${debian_chroot:+($debian_chroot)}'$PS1
PS1='${_noop[$(($?==0))]:+($?)}${_noop[$((\j==0))]:+[\j]}'$PS1
return
@@ -45,7 +45,7 @@ PS1='${SSH_CONNECTION:+\[\e[1;32m\]\h\[\e[1;33m\]:}'$PS1
# If this is our local machine and we didn't sudo, we should know
# our username already! Otherwise if it's "tty", show it in purple.
# If we did sudo/doas, show the username we came from in red.
-PS1='${_tty:+\[\e[1;35m\]\u\[\e[1;91m\]${SUDO_USER:+($SUDO_USER)}${DOAS_USER:+($DOAS_USER)}\[\e[1;33m\]@}'$PS1
+PS1='${_tty:+\[\e[1;35m\]\u\[\e[1;91m\]${SUDO_USER:+<$SUDO_USER>}${DOAS_USER:+<$DOAS_USER>}\[\e[1;33m\]@}'$PS1
# If the debian_chroot var is defined, show it in cyan.
PS1='${debian_chroot:+\[\e[1;36m\]($debian_chroot)}'$PS1
# If the number of jobs suspended/backgrounded is nonzero,