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

fix linux distro icons

This commit is contained in:
romkatv 2019-03-14 18:00:10 +01:00
parent ada73dc843
commit af9c7adfd0

View file

@ -2119,8 +2119,7 @@ _p9k_init() {
OS='Linux'
local os_release_id
[[ -f /etc/os-release &&
"${(f)$((</etc/os-release) 2>/dev/null)}" =~ "ID=([A-Za-z]+)" &&
os_release_id="${match[1]}" ]]
"${(f)$((</etc/os-release) 2>/dev/null)}" =~ "ID=([A-Za-z]+)" ]] && os_release_id="${match[1]}"
case "$os_release_id" in
*arch*) set_os Linux LINUX_ARCH_ICON;;
*debian*) set_os Linux LINUX_DEBIAN_ICON;;