From b85cc403eb7d9f51a50084a5c3787d0018b1d02c Mon Sep 17 00:00:00 2001 From: Nico Date: Thu, 29 Jan 2026 23:59:41 +1100 Subject: [PATCH] zsh: simply prompt icon logic --- stow/.zshrc | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/stow/.zshrc b/stow/.zshrc index 6d46e0e..b893e40 100644 --- a/stow/.zshrc +++ b/stow/.zshrc @@ -5,21 +5,21 @@ # # set icon -if [ -e /System ]; 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" = "arch" ]; then + OSICON="󰣇" +elif [ "$ID" = "fedora" ]; then + OSICON="" +elif [ -e /System ]; then OSICON="" eval "$(/opt/homebrew/bin/brew shellenv)" -elif [ -f /etc/os-release ]; then - . /etc/os-release &> /dev/null - - if [ "$ID" = "nixos" ]; then - OSICON="" - elif [ "$ID" = "debian" ]; then - OSICON="" - elif [ "$ID" = "fedora" ]; then - OSICON="󰣇" - elif [ "$ID" = "arch" ]; then - OSICON="" - fi else OSICON="$" fi