changement prompt

This commit is contained in:
François
2026-03-21 18:10:35 +01:00
parent a3eb567333
commit 88cfddee2e

View File

@@ -78,10 +78,19 @@ source <(fzf --zsh) # allow for fzf history widget
# set up prompt
NEWLINE=$'\n'
precmd() {
print ""
if [ -z ${BACKGROUND_COL} ]; then
PROMPT="${NEWLINE}%K{#2E3440}%F{#E5E9F0} %N %K{#3b4252}%F{#ECEFF4} %n %K{#4c566a} %~ %f%k " # nord theme
print -P "%K{#2E3440}%F{#E5E9F0} %N %K{#3b4252}%F{#ECEFF4} %n %K{#4c566a} %~ %f%k " # nord theme
else
PROMPT="${NEWLINE}%K{${COL1}}%F{${COL2}} %N %K{${COL3}}%F{${COL4}} %n %K{${COL5}} %~ %f%k " # custom dynamic theme
print -P "%K{${COL1}}%F{${COL2}} %N %K{${COL3}}%F{${COL4}} %n %K{${COL5}} %~ %f%k " # custom dynamic theme
fi
}
if [ -z ${BACKGROUND_COL} ]; then
PROMPT="󱞩 " # nord theme
else
PROMPT="󱞩 " # custom dynamic theme
fi
echo -e "${NEWLINE}\x1b[38;5;137m\x1b[48;5;0m it's $(print -P '%D{%_H:%M%P}\n') \x1b[38;5;180m\x1b[48;5;0m $(uptime -p | cut -c 4-) \x1b[38;5;223m\x1b[48;5;0m $(uname -r) \033[0m" # current