Mieux la flèche

This commit is contained in:
François
2026-03-29 10:37:38 +02:00
parent a8e3d367ca
commit c6d65f6674

View File

@@ -78,22 +78,23 @@ source <(fzf --zsh) # allow for fzf history widget
# set up prompt
NEWLINE=$'\n'
POWERLINE_START="\uE0D4"
POWERLINE_SEPARATOR="\uE0C6"
POWERLINE_STOP="\uE0B4"
POWERLINE_START="\ue0d4"
POWERLINE_SEPARATOR="\ue0c6"
POWERLINE_STOP="\ue0b4"
PROMPT_ENTER="" #"\ueb70"
precmd() {
print ""
if [ -z ${BACKGROUND_COL} ]; then
print -P "%F{#2E3440}${POWERLINE_START}%K{#2E3440}%F{#E5E9F0} %N %K{#3b4252}%F{#2e3440}${POWERLINE_SEPARATOR}%K{#3b4252}%F{#ECEFF4} %n %K{#4c566a}%F{#3b4252}${POWERLINE_SEPARATOR}%F{#eceff4} %~ %K{#eceff4}%F{#4c566a}${POWERLINE_SEPARATOR} %k%F{#eceff4}${POWERLINE_STOP}" # nord theme
print -P "%F{#2e3440}${POWERLINE_START}%K{#2e3440}%F{#e5e9f0} %y on %M %K{#3b4252}%F{#2e3440}${POWERLINE_SEPARATOR}%K{#3b4252}%F{#eceff4} %n %K{#4c566a}%F{#3b4252}${POWERLINE_SEPARATOR}%F{#eceff4} %~ %K{#eceff4}%F{#4c566a}${POWERLINE_SEPARATOR} %k%F{#eceff4}${POWERLINE_STOP}" # nord theme
else
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
PROMPT="${PROMPT_ENTER} " # nord theme
else
PROMPT="󱞩 " # custom dynamic theme
PROMPT="${PROMPT_ENTER} " # 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