zsh: simply prompt icon logic

This commit is contained in:
Nico 2026-01-29 23:59:41 +11:00
parent e8218593d6
commit b85cc403eb
Signed by: nico
SSH key fingerprint: SHA256:XuacYOrGqRxC3jVFjfLROn1CSvLz85Dec6N7O9Gwu/0

View file

@ -5,21 +5,21 @@
#
# set icon
if [ -e /System ]; then
OSICON=""
eval "$(/opt/homebrew/bin/brew shellenv)"
elif [ -f /etc/os-release ]; then
if [ -f /etc/os-release ]; then
. /etc/os-release &> /dev/null
fi
if [ "$ID" = "nixos" ]; then
OSICON=""
elif [ "$ID" = "debian" ]; then
OSICON=""
elif [ "$ID" = "fedora" ]; then
OSICON="󰣇"
elif [ "$ID" = "arch" ]; then
OSICON="󰣇"
elif [ "$ID" = "fedora" ]; then
OSICON=""
fi
elif [ -e /System ]; then
OSICON=""
eval "$(/opt/homebrew/bin/brew shellenv)"
else
OSICON="$"
fi