aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlkindi42 <alkindus42@gmail.com>2023-06-10 15:25:17 +0300
committerAlkindi42 <alkindus42@gmail.com>2023-06-10 15:25:17 +0300
commit3ecef8c6a5d12d7aaf0335efc3483c4145371337 (patch)
tree81cb72ea8764386e46f0b8a5f20c147104e10203
parent7b197465803cd5f646e916b631f1b239d02efebf (diff)
feat(chezmoi): add instant_prompt_chezmoi
-rw-r--r--internal/p10k.zsh4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index b2b07aa6..5a72b7e4 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -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):