Skip to content

Commit

Permalink
profile.d: prepend purple hexagon to PS1 rather than overwriting it
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
juhp committed Jul 7, 2024
1 parent cb6eee8 commit 3c17695
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions profile.d/toolbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ fi

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

if ! [ -f "$toolbox_welcome_stub" ]; then
echo ""
Expand Down

0 comments on commit 3c17695

Please sign in to comment.