dotfiles/dot_config/zsh/distroicon.zsh
eeleater 9957ffda07 Update .config/zsh/rc.zsh
Change attributes of .config/zsh/distroicon.zsh
2022-11-15 08:58:56 +01:00

34 lines
1.2 KiB
Bash

# find out which distribution we are running on
LFILE="/etc/*-release"
if [[ -f $LFILE ]]; then
_distro=$(awk '/^ID_LIKE=/' /etc/*-release | awk -F'=' '{ print tolower($2) }')
fi
# set an icon based on the distro
case $_distro in
*kali*) ICON="ﴣ";;
*arch*) 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="";;
*macos*) ICON="";;
*) ICON="";;
esac
export STARSHIP_DISTRO="$ICON"