feat(chezmoi): add instant_prompt_chezmoi

This commit is contained in:
Alkindi42 2023-06-10 14:25:17 +02:00
parent 7b19746580
commit 3ecef8c6a5

View file

@ -4271,6 +4271,10 @@ _p9k_prompt_chezmoi_init() {
typeset -g "_p9k__segment_cond_${_p9k__prompt_side}[_p9k__segment_index]"='$CHEZMOI'
}
function instant_prompt_chezmoi() {
_p9k_prompt_segment prompt_chezmoi "black" "white" CHEZMOI_ICON 0 '' 'chezmoi'
}
################################################################
# Virtualenv: current working virtualenv
# More information on virtualenv (Python):