fix (zshrc): iterm2 requires an explicit typeset for the precmd_define_prompt

This commit is contained in:
eeemsi 2025-11-21 10:27:14 +01:00
parent 3343658120
commit 1b8218f193

1
zshrc
View File

@ -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 ' PS1='%B%K{white}%F{black}%(3~|…/%1~|%~)%k%f %F{green}${vcs_info_msg_0_}%f %%%b '
fi fi
} }
typeset -ga precmd_functions
precmd_functions+=precmd_define_prompt precmd_functions+=precmd_define_prompt
# include reading files from directory # include reading files from directory