Detect rpi os based on apt source

pull/2576/head
Adam Schumacher 10 months ago
parent 17cd9e354a
commit 9e3418d319

@ -8627,8 +8627,13 @@ function _p9k_init_cacheable() {
*arch*) _p9k_set_os Linux LINUX_ARCH_ICON;; *arch*) _p9k_set_os Linux LINUX_ARCH_ICON;;
*debian*) _p9k_set_os Linux LINUX_DEBIAN_ICON;; *debian*) _p9k_set_os Linux LINUX_DEBIAN_ICON;;
*raspbian*) _p9k_set_os Linux LINUX_RASPBIAN_ICON;; *raspbian*) _p9k_set_os Linux LINUX_RASPBIAN_ICON;;
*ubuntu*) _p9k_set_os Linux LINUX_UBUNTU_ICON;; *debian*)
*elementary*) _p9k_set_os Linux LINUX_ELEMENTARY_ICON;; if [[ -f /etc/apt/sources.list.d/raspi.list ]]; then
_p9k_set_os Linux LINUX_RASPBIAN_ICON
else
_p9k_set_os Linux LINUX_RASPBIAN_ICON
fi
;; *elementary*) _p9k_set_os Linux LINUX_ELEMENTARY_ICON;;
*fedora*) _p9k_set_os Linux LINUX_FEDORA_ICON;; *fedora*) _p9k_set_os Linux LINUX_FEDORA_ICON;;
*coreos*) _p9k_set_os Linux LINUX_COREOS_ICON;; *coreos*) _p9k_set_os Linux LINUX_COREOS_ICON;;
*kali*) _p9k_set_os Linux LINUX_KALI_ICON;; *kali*) _p9k_set_os Linux LINUX_KALI_ICON;;

Loading…
Cancel
Save