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
|
# set icon
|
||||||
if [ -e /System ]; then
|
if [ -f /etc/os-release ]; then
|
||||||
OSICON=""
|
|
||||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
|
||||||
elif [ -f /etc/os-release ]; then
|
|
||||||
. /etc/os-release &> /dev/null
|
. /etc/os-release &> /dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$ID" = "nixos" ]; then
|
if [ "$ID" = "nixos" ]; then
|
||||||
OSICON=""
|
OSICON=""
|
||||||
elif [ "$ID" = "debian" ]; then
|
elif [ "$ID" = "debian" ]; then
|
||||||
OSICON=""
|
OSICON=""
|
||||||
elif [ "$ID" = "fedora" ]; then
|
|
||||||
OSICON=""
|
|
||||||
elif [ "$ID" = "arch" ]; then
|
elif [ "$ID" = "arch" ]; then
|
||||||
|
OSICON=""
|
||||||
|
elif [ "$ID" = "fedora" ]; then
|
||||||
OSICON=""
|
OSICON=""
|
||||||
fi
|
elif [ -e /System ]; then
|
||||||
|
OSICON=""
|
||||||
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||||
else
|
else
|
||||||
OSICON="$"
|
OSICON="$"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue