zsh: simply prompt icon logic
This commit is contained in:
parent
e8218593d6
commit
b85cc403eb
1 changed files with 13 additions and 13 deletions
14
stow/.zshrc
14
stow/.zshrc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue