Skip to content

Commit

Permalink
init: fix prompt not sourcing on some distros
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Di Maio <[email protected]>
  • Loading branch information
89luca89 committed Oct 29, 2024
1 parent e2ac35b commit 18053c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions distrobox-init
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,7 @@ setup_apt()
xz-utils
zip
libgl1
libegl-mesa0
libegl1-mesa
libgl1-mesa-glx
libegl1
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 18053c2

Please sign in to comment.