1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-21 11:50:07 +00:00

unquote ID in /etc/os-release (#2388)

This commit is contained in:
Roman Perepelitsa 2023-07-25 07:55:26 +02:00
parent e8aa8cce7f
commit 1d96f5e066
2 changed files with 2 additions and 2 deletions

View file

@ -9375,7 +9375,7 @@ if [[ $__p9k_dump_file != $__p9k_instant_prompt_dump_file && -n $__p9k_instant_p
zf_rm -f -- $__p9k_instant_prompt_dump_file{,.zwc} 2>/dev/null
fi
typeset -g P9K_VERSION=1.19.3
typeset -g P9K_VERSION=1.19.4
unset VSCODE_SHELL_INTEGRATION
_p9k_init_ssh

View file

@ -1126,7 +1126,7 @@ function os_icon_name() {
if [[ -r /etc/os-release ]]; then
local lines=(${(f)"$(</etc/os-release)"})
lines=(${(@M)lines:#ID=*})
(( $#lines == 1 )) && os_release_id=${lines[1]#ID=}
(( $#lines == 1 )) && os_release_id=${(Q)${lines[1]#ID=}}
elif [[ -e /etc/artix-release ]]; then
os_release_id=artix
fi