fix linux distro icons

pull/27/head
romkatv 6 years ago
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…
Cancel
Save