dotfiles/dot_config/zsh/files/distroicon.zsh
eeleater 5c73c42276 Update .config/sheldon/plugins.toml
Update .config/zsh/env.zsh
Add .config/zsh/files/compinit.zsh
Add .config/zsh/files/sshcomp.zsh
Update .config/zsh/rc.zsh
Update .config/zsh/.zprofile
Remove .config/zsh/.zsh_plugins.txt
Remove .config/zsh/zsh_plugins.txt
Update .local/bin/bofh
Change attributes of .config/zsh/files/aliases.zsh
Change attributes of .config/zsh/files/distroicon.zsh
Change attributes of .config/zsh/files/keybinds.zsh
Change attributes of .config/zsh/files/transfer.zsh
Change attributes of .config/zsh/profile.zsh
2022-12-19 02:19:48 +01:00

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 DISTROICON="$ICON"