mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-25 05:30:06 +00:00
Merge branch 'use-HOST-for-distrobox-detection' of https://github.com/christian-schulze/powerlevel10k into christian-schulze-use-HOST-for-distrobox-detection
This commit is contained in:
commit
64c5f10379
1 changed files with 1 additions and 1 deletions
|
@ -8280,7 +8280,7 @@ _p9k_init_toolbox() {
|
||||||
local name=(${(Q)${${(@M)${(f)"$(</run/.containerenv)"}:#name=*}#name=}})
|
local name=(${(Q)${${(@M)${(f)"$(</run/.containerenv)"}:#name=*}#name=}})
|
||||||
[[ ${#name} -eq 1 && -n ${name[1]} ]] || return 0
|
[[ ${#name} -eq 1 && -n ${name[1]} ]] || return 0
|
||||||
typeset -g P9K_TOOLBOX_NAME=${name[1]}
|
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}
|
local name=${(%):-%m}
|
||||||
if [[ $name == $NAME* ]]; then
|
if [[ $name == $NAME* ]]; then
|
||||||
typeset -g P9K_TOOLBOX_NAME=$name
|
typeset -g P9K_TOOLBOX_NAME=$name
|
||||||
|
|
Loading…
Reference in a new issue