diff options
author | Alkindi42 <alkindus42@gmail.com> | 2023-05-18 12:57:40 +0300 |
---|---|---|
committer | Alkindi42 <alkindus42@gmail.com> | 2023-05-18 12:57:40 +0300 |
commit | 6740f08f61395665714fbba150c82e99ffe0e784 (patch) | |
tree | be336a0b82c933bb42e96514a7078d5df8212f0c /internal/p10k.zsh | |
parent | a69aa22fa8a4fe0927bb73716c2f7c9d2580a51d (diff) |
chezmoi: add chezmoi prompt
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index a3541bac..dea5e26d 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -4261,6 +4261,17 @@ instant_prompt_vi_mode() { } ################################################################ +# Segment to display chezmoi information. +# More information: https://www.chezmoi.io/ +prompt_chezmoi() { + _p9k_prompt_segment "$0" "blue" "$_p9k_color1" '' 0 '' "chezmoi" +} + +_p9k_prompt_chezmoi_init() { + typeset -g "_p9k__segment_cond_${_p9k__prompt_side}[_p9k__segment_index]"='$CHEZMOI' +} + +################################################################ # Virtualenv: current working virtualenv # More information on virtualenv (Python): # https://virtualenv.pypa.io/en/latest/ |