Add .config/kitty/current-theme.conf Add .config/kitty/kitty.conf Remove .config/qtile/.keep Remove .config/qtile/old_configs/.keep Remove .config/qtile/old_configs/sweenu/.keep Remove .config/qtile/old_configs/sweenu/util/.keep Remove .config/qtile/scripts/.keep Remove .config/qtile/themes/.keep Remove .config/sheldon/.keep Remove .config/spacevim/.keep Remove .config/starship/.keep Add .config/starship/config.toml Remove .config/starship/starship.toml Remove .config/zsh/.keep Update .config/zsh/env.zsh Update .config/zsh/rc.zsh Add .config/zsh/starship_icon.zsh Add .config/zsh/transfer.zsh
34 lines
1.2 KiB
Bash
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"
|