Merge branch 'christian-schulze-use-HOST-for-distrobox-detection'

pull/1965/head
Roman Perepelitsa 2 years ago
commit 7704f6b877

@ -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

Loading…
Cancel
Save