From 18053c254a83750c49c08e58df2e48a0f04aef48 Mon Sep 17 00:00:00 2001 From: Luca Di Maio Date: Tue, 29 Oct 2024 15:12:04 +0100 Subject: [PATCH] init: fix prompt not sourcing on some distros Signed-off-by: Luca Di Maio --- distrobox-init | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/distrobox-init b/distrobox-init index a54419f033..309a3a5ee0 100755 --- a/distrobox-init +++ b/distrobox-init @@ -808,6 +808,7 @@ setup_apt() xz-utils zip libgl1 + libegl-mesa0 libegl1-mesa libgl1-mesa-glx libegl1 @@ -2062,8 +2063,8 @@ fi # toolbx prompt: https://github.com/containers/toolbox/blob/main/profile.d/toolbox.sh#L47 # this will ensure greater compatibility between the two implementations if [ -f /run/.toolboxenv ]; then - [ "\${BASH_VERSION:-}" != "" ] && PS1="📦[\u@\$CONTAINER_ID \W]\$ " - [ "\${ZSH_VERSION:-}" != "" ] && PS1="📦[%n@\$CONTAINER_ID]%~%# " + [ "\${BASH_VERSION:-}" != "" ] && export PS1="📦[\u@\$CONTAINER_ID \W]\$ " + [ "\${ZSH_VERSION:-}" != "" ] && export PS1="📦[%n@\$CONTAINER_ID]%~%# " fi # This will ensure we have a first-shell password setup for an user if needed.