33 lines
1.2 KiB
Bash
33 lines
1.2 KiB
Bash
# find out which distribution we are running on
|
|
FILE="/etc/*-release"
|
|
if [[ -f $FILE ]]; then
|
|
_distro=$(awk '/^ID=/' /etc/*-release | awk -F'=' '{ print tolower($2) }')
|
|
fi
|
|
|
|
# set an icon based on the distro
|
|
case $_distro in
|
|
*kali*) ICON="ﴣ";;
|
|
*arch*|*endeavouros*) ICON="";;
|
|
*debian*) ICON="";;
|
|
*raspbian*) ICON="";;
|
|
*ubuntu*) ICON="";;
|
|
*elementary*) ICON="";;
|
|
*fedora*) ICON="";;
|
|
*coreos*) ICON="";;
|
|
*gentoo*) ICON="";;
|
|
*mageia*) ICON="";;
|
|
*centos*) ICON="";;
|
|
*opensuse*|*tumbleweed*) ICON="";;
|
|
*sabayon*) ICON="";;
|
|
*slackware*) ICON="";;
|
|
*linuxmint*) ICON="";;
|
|
*alpine*) ICON="";;
|
|
*aosc*) ICON="";;
|
|
*nixos*) ICON="";;
|
|
*devuan*) ICON="";;
|
|
*manjaro*) ICON="";;
|
|
*rhel*) ICON="";;
|
|
*) ICON="";;
|
|
esac
|
|
|
|
export STARSHIP_DISTRO="$ICON"
|