better prompt with powerline

This commit is contained in:
François
2026-03-28 08:49:04 +01:00
parent 88cfddee2e
commit a8e3d367ca

View File

@@ -78,11 +78,14 @@ source <(fzf --zsh) # allow for fzf history widget
# set up prompt
NEWLINE=$'\n'
POWERLINE_START="\uE0D4"
POWERLINE_SEPARATOR="\uE0C6"
POWERLINE_STOP="\uE0B4"
precmd() {
print ""
if [ -z ${BACKGROUND_COL} ]; then
print -P "%K{#2E3440}%F{#E5E9F0} %N %K{#3b4252}%F{#ECEFF4} %n %K{#4c566a} %~ %f%k " # nord theme
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
else
print -P "%K{${COL1}}%F{${COL2}} %N %K{${COL3}}%F{${COL4}} %n %K{${COL5}} %~ %f%k " # custom dynamic theme
fi