mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-24 16:11:57 +00:00
chezmoi: add chezmoi prompt
This commit is contained in:
parent
a69aa22fa8
commit
6740f08f61
1 changed files with 11 additions and 0 deletions
|
@ -4260,6 +4260,17 @@ instant_prompt_vi_mode() {
|
|||
fi
|
||||
}
|
||||
|
||||
################################################################
|
||||
# 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):
|
||||
|
|
Loading…
Reference in a new issue