mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-24 05:00:07 +00:00
add prompt segment for yazi levels
This commit is contained in:
parent
1aa91f0069
commit
eb8f96f808
1 changed files with 12 additions and 0 deletions
|
@ -4955,6 +4955,18 @@ function instant_prompt_ranger() {
|
|||
_p9k_prompt_segment prompt_ranger $_p9k_color1 yellow RANGER_ICON 1 '$RANGER_LEVEL' '$RANGER_LEVEL'
|
||||
}
|
||||
|
||||
function prompt_yazi() {
|
||||
_p9k_prompt_segment $0 $_p9k_color1 yellow YAZI_ICON 0 '' $YAZI_LEVEL
|
||||
}
|
||||
|
||||
_p9k_prompt_yazi_init() {
|
||||
typeset -g "_p9k__segment_cond_${_p9k__prompt_side}[_p9k__segment_index]"='$YAZI_LEVEL'
|
||||
}
|
||||
|
||||
function instant_prompt_yazi() {
|
||||
_p9k_prompt_segment prompt_yazi $_p9k_color1 yellow YAZI_ICON 1 '$YAZI_LEVEL' '$YAZI_LEVEL'
|
||||
}
|
||||
|
||||
function prompt_midnight_commander() {
|
||||
local -i len=$#_p9k__prompt _p9k__has_upglob
|
||||
_p9k_prompt_segment $0 $_p9k_color1 yellow MIDNIGHT_COMMANDER_ICON 0 '' ''
|
||||
|
|
Loading…
Reference in a new issue