Skip to content

Commit 76ec022

Browse files
committed
profile.d/toolbox.sh: set bash PS1 as explicit string constant
since it is constant there is no need to use printf and embed binary color codes, which also made it hard to match on toolbox PS1. Signed-off-by: Jens Petersen <[email protected]> #1514
1 parent cb6eee8 commit 76ec022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

profile.d/toolbox.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ 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]\\$ ")
51+
[ "${BASH_VERSION:-}" != "" ] && PS1='\[\e[35m\]⬢\[\e[0m\][\u@\h \W]\$ '
5252
[ "${ZSH_VERSION:-}" != "" ] && PS1=$(printf "\033[35m⬢\033[0m%s" "[%n@%m]%~%# ")
5353

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

0 commit comments

Comments
 (0)