From 45f4cb16249ae8cb9efa1cce260aed43478a736e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=A9=20Vulquin?= Date: Sun, 18 Jan 2026 22:39:04 +0100 Subject: zsh: prompt debugging... --- dot_config/zsh/functions/prompt_fish_setup | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'dot_config/zsh/functions/prompt_fish_setup') diff --git a/dot_config/zsh/functions/prompt_fish_setup b/dot_config/zsh/functions/prompt_fish_setup index 35eaeb9..397b3e0 100644 --- a/dot_config/zsh/functions/prompt_fish_setup +++ b/dot_config/zsh/functions/prompt_fish_setup @@ -4,20 +4,14 @@ # while being a minimal/cheap implementation setopt promptsubst -autoload -Uz add-zsh-hook -autoload -Uz vcs_info # make sure you configure yours! -_prompt_fish_chpwd() { FORCE_RUN_VCS_INFO=1; } -_prompt_fish_precmd() { vcs_info fish; } - -add-zsh-hook chpwd _prompt_fish_chpwd -add-zsh-hook precmd _prompt_fish_precmd - -add-zsh-hook -Uz chpwd vcs_info +# make sure you configure vcs_info! +# TODO: this doesn't seem to consistently run just after starting, why? +autoload -RUz add-zsh-hook +add-zsh-hook -Uz precmd vcs_info local login='%(!.%F{red}.%F{green})%n%f@%m' local vcsinfo='${vcs_info_msg_0_:+ $vcs_info_msg_0_}' local returnc='%(0?.. %F{red}[%?]%f)' local separator='%(!.#.>)' - PS1="$login %~$vcsinfo$returnc$separator " -- cgit v1.2.3