aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorChristian Schulze <christian.schulze@gmail.com>2022-06-24 08:09:06 +0300
committerChristian Schulze <christian.schulze@gmail.com>2022-06-24 08:09:06 +0300
commitcb82b1f5d97322d07c1c210d1c9666b02a62e469 (patch)
tree436cfba9cc9a8c216a3fac57b904d08e0dee9edf /internal
parentcf67cad46557d57d5d2399e6d893c317126e037c (diff)
use HOST for distrobox detection
Diffstat (limited to 'internal')
-rw-r--r--internal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 1e01ba5f..9668c421 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -8280,7 +8280,7 @@ _p9k_init_toolbox() {
local name=(${(Q)${${(@M)${(f)"$(</run/.containerenv)"}:#name=*}#name=}})
[[ ${#name} -eq 1 && -n ${name[1]} ]] || return 0
typeset -g P9K_TOOLBOX_NAME=${name[1]}
- elif [[ -n $DISTROBOX_ENTER_PATH && -n $NAME ]]; then
+ elif [[ -n $DISTROBOX_ENTER_PATH && -n $HOST ]]; then
local name=${(%):-%m}
if [[ $name == $NAME* ]]; then
typeset -g P9K_TOOLBOX_NAME=$name