mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-12 19:18:28 +02:00
fix linux distro icons
This commit is contained in:
parent
ada73dc843
commit
af9c7adfd0
@ -2119,8 +2119,7 @@ _p9k_init() {
|
|||||||
OS='Linux'
|
OS='Linux'
|
||||||
local os_release_id
|
local os_release_id
|
||||||
[[ -f /etc/os-release &&
|
[[ -f /etc/os-release &&
|
||||||
"${(f)$((</etc/os-release) 2>/dev/null)}" =~ "ID=([A-Za-z]+)" &&
|
"${(f)$((</etc/os-release) 2>/dev/null)}" =~ "ID=([A-Za-z]+)" ]] && os_release_id="${match[1]}"
|
||||||
os_release_id="${match[1]}" ]]
|
|
||||||
case "$os_release_id" in
|
case "$os_release_id" in
|
||||||
*arch*) set_os Linux LINUX_ARCH_ICON;;
|
*arch*) set_os Linux LINUX_ARCH_ICON;;
|
||||||
*debian*) set_os Linux LINUX_DEBIAN_ICON;;
|
*debian*) set_os Linux LINUX_DEBIAN_ICON;;
|
||||||
|
Loading…
Reference in New Issue
Block a user