Add a note about _ksi_first_run

This commit is contained in:
Kovid Goyal
2021-11-28 08:14:16 +05:30
parent 325603bf41
commit 0a5ffe9b73

View File

@@ -139,6 +139,10 @@
}
function _ksi_first_run() {
# We install the real precmd and preexec functions here and remove this function
# from precmd_functions. This ensures that our functions are last. This is needed
# because the zsh prompt_init package actually sets PS1 in a precmd function and the user
# could have setup their own precmd function to set the prompt as well.
_ksi_install_completion
typeset -a -g precmd_functions
local idx=$precmd_functions[(ie)_ksi_first_run]