From 1b8218f193459297e4e73969a5fe7387a6b219ae Mon Sep 17 00:00:00 2001 From: eeemsi Date: Fri, 21 Nov 2025 10:27:14 +0100 Subject: [PATCH] fix (zshrc): iterm2 requires an explicit typeset for the precmd_define_prompt --- zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/zshrc b/zshrc index 47bbf51..2f3e1b2 100644 --- a/zshrc +++ b/zshrc @@ -101,6 +101,7 @@ precmd_define_prompt() { PS1='%B%K{white}%F{black}%(3~|…/%1~|%~)%k%f %F{green}${vcs_info_msg_0_}%f %%%b ' fi } +typeset -ga precmd_functions precmd_functions+=precmd_define_prompt # include reading files from directory