diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2023-06-11 09:14:15 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2023-06-11 09:14:15 +0300 |
commit | c775a3ffd5c68b3aebbe78a27711cb395782bd88 (patch) | |
tree | 6705aab76ef9da779cd81d4ee91a49ee3314d0fe /internal/p10k.zsh | |
parent | e4b8925478d79795713c80dca4680782a33cdc1b (diff) | |
parent | 416bdf1ca38207f2cc3d70795a59c781f20e9d05 (diff) |
Merge branch 'Alkindi42-feat/add-chezmoi-prompt'
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index bfa267d6..b41c6ebb 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -4261,6 +4261,21 @@ instant_prompt_vi_mode() { } ################################################################ +# Segment to display chezmoi information. +# More information: https://www.chezmoi.io/ +prompt_chezmoi() { + _p9k_prompt_segment "$0" "black" "white" 'CHEZMOI_ICON' 0 '' "chezmoi" +} + +_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): # https://virtualenv.pypa.io/en/latest/ |