1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-24 16:11:57 +00:00

use HOST for distrobox detection

This commit is contained in:
Christian Schulze 2022-06-24 15:09:06 +10:00
parent cf67cad465
commit cb82b1f5d9

View file

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