From b2e82b80d34c857eda431187a44025945923b30a Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Tue, 18 Feb 2025 13:13:15 -0800 Subject: [PATCH] Improve distrobox detection --- init.zsh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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)"$(