zsh: redo shell prompt, use OS specific icon in prompt
This commit is contained in:
parent
53174334aa
commit
ec7c50dedc
1 changed files with 19 additions and 1 deletions
20
stow/.zshrc
20
stow/.zshrc
|
|
@ -1,6 +1,24 @@
|
||||||
# z shell configuration
|
# z shell configuration
|
||||||
|
|
||||||
PROMPT="%F{green}%~ %F{yellow}%m %f"
|
export OSICON="?"
|
||||||
|
|
||||||
|
if [ -e /System ]; then
|
||||||
|
OSICON=""
|
||||||
|
else
|
||||||
|
. /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
|
||||||
|
fi
|
||||||
|
|
||||||
|
PROMPT="%K{blue}%F{black} %~ %K{yellow} $OSICON %k "
|
||||||
|
|
||||||
bindkey -e
|
bindkey -e
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue