From 88cfddee2edba591401b6236fa08e0eec7ec74e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Sat, 21 Mar 2026 18:10:35 +0100 Subject: [PATCH] changement prompt --- private_dot_config/zsh/dot_zshrc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/private_dot_config/zsh/dot_zshrc b/private_dot_config/zsh/dot_zshrc index bbcf3e8..3b73f2c 100644 --- a/private_dot_config/zsh/dot_zshrc +++ b/private_dot_config/zsh/dot_zshrc @@ -78,10 +78,19 @@ source <(fzf --zsh) # allow for fzf history widget # set up prompt NEWLINE=$'\n' + +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 + 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="${NEWLINE}%K{#2E3440}%F{#E5E9F0} %N %K{#3b4252}%F{#ECEFF4} %n %K{#4c566a} %~ %f%k ❯ " # nord theme + PROMPT="󱞩 " # nord theme else - PROMPT="${NEWLINE}%K{${COL1}}%F{${COL2}} %N %K{${COL3}}%F{${COL4}} %n %K{${COL5}} %~ %f%k ❯ " # custom dynamic theme + 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