Skip to content

Commit 18053c2

Browse files
committed
init: fix prompt not sourcing on some distros
Signed-off-by: Luca Di Maio <[email protected]>
1 parent e2ac35b commit 18053c2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

distrobox-init

+3-2
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,7 @@ setup_apt()
808808
xz-utils
809809
zip
810810
libgl1
811+
libegl-mesa0
811812
libegl1-mesa
812813
libgl1-mesa-glx
813814
libegl1
@@ -2062,8 +2063,8 @@ fi
20622063
# toolbx prompt: https://github.com/containers/toolbox/blob/main/profile.d/toolbox.sh#L47
20632064
# this will ensure greater compatibility between the two implementations
20642065
if [ -f /run/.toolboxenv ]; then
2065-
[ "\${BASH_VERSION:-}" != "" ] && PS1="📦[\u@\$CONTAINER_ID \W]\$ "
2066-
[ "\${ZSH_VERSION:-}" != "" ] && PS1="📦[%n@\$CONTAINER_ID]%~%# "
2066+
[ "\${BASH_VERSION:-}" != "" ] && export PS1="📦[\u@\$CONTAINER_ID \W]\$ "
2067+
[ "\${ZSH_VERSION:-}" != "" ] && export PS1="📦[%n@\$CONTAINER_ID]%~%# "
20672068
fi
20682069
20692070
# This will ensure we have a first-shell password setup for an user if needed.

0 commit comments

Comments
 (0)