summaryrefslogtreecommitdiff
path: root/dot-bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'dot-bashrc')
-rw-r--r--dot-bashrc4
1 files 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