From aa8a5f2fcd529bd5edb4337f1b2584d09a460349 Mon Sep 17 00:00:00 2001 From: José Juan Loeza Sierra Date: Wed, 8 Apr 2026 20:05:21 -0700 Subject: change container PS1 check with that from distrobox This is the check distrobox uses for seeing if we're in a container. See https://github.com/89luca89/distrobox/blob/324f6fedac818dd71eefbde3ee34d709477c9064/distrobox-init#L2252 --- dot-bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dot-bashrc b/dot-bashrc index 43ed001..e6792c4 100644 --- a/dot-bashrc +++ b/dot-bashrc @@ -92,8 +92,8 @@ eval "$(direnv hook bash)" # zoxide eval "$(zoxide init bash)" -# add container id to prompt when in a container -if [[ -n "$CONTAINER_ID" ]]; then +# add container id to prompt when in a toolbox/distrobox container +if [ -f /run/.toolboxenv ]; then PS1="($CONTAINER_ID) $PS1" fi -- cgit v1.3