1
0
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:
romkatv 2019-03-14 18:00:10 +01:00
parent ada73dc843
commit af9c7adfd0

View File

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