diff --git a/init.zsh b/init.zsh index b41c2d4..28527fa 100644 --- a/init.zsh +++ b/init.zsh @@ -32,9 +32,9 @@ function source_user_file { source_user_file "early-init" # Load distrobox early init file -local is_in_container=false -if [[ -e /run/.containerenv ]]; then - is_in_container=true +local is_in_distrobox=false +if [[ -e /run/.containerenv ]] && cmd_exists distrobox-host-exec; then + is_in_distrobox=true local ctenv=("${(@f)"$(