1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-26 22:10:06 +00:00

Detect rpi os based on apt source

This commit is contained in:
Adam Schumacher 2024-02-17 21:26:53 -05:00
parent 17cd9e354a
commit 9e3418d319

View file

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