Skip to content

Commit 3c17695

Browse files
committed
profile.d: prepend purple hexagon to PS1 rather than overwriting it
Importantly this means the traditional Red Hat style prompt is not forced onto all other OS toolboxes too. A space is added after the hexagon since vte tends to render it too big at least with google-noto-color-emoji-fonts. #1517 Signed-off-by: Jens Petersen <[email protected]>
1 parent cb6eee8 commit 3c17695

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

profile.d/toolbox.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ fi
4848

4949
if [ -f /run/.containerenv ] \
5050
&& [ -f /run/.toolboxenv ]; then
51-
[ "${BASH_VERSION:-}" != "" ] && PS1=$(printf "\[\033[35m\]⬢\[\033[0m\]%s" "[\u@\h \W]\\$ ")
52-
[ "${ZSH_VERSION:-}" != "" ] && PS1=$(printf "\033[35m⬢\033[0m%s" "[%n@%m]%~%# ")
51+
[ -n "${BASH_VERSION}" ] && PS1="\[\e[35m\]⬢\[\e[0m\] $PS1"
52+
[ -n "${ZSH_VERSION:-}" ] && PS1=$(printf "\033[35m⬢\033[0m %s" "$PS1")
5353

5454
if ! [ -f "$toolbox_welcome_stub" ]; then
5555
echo ""

0 commit comments

Comments
 (0)