bug fix: don't cache range and nnn segments as their content is not static
This commit is contained in:
parent
73878f398a
commit
1f2251b799
|
@ -4234,9 +4234,7 @@ _p9k_prompt_nordvpn_init() {
|
|||
}
|
||||
|
||||
function prompt_ranger() {
|
||||
local -i len=$#_p9k__prompt
|
||||
_p9k_prompt_segment $0 $_p9k_color1 yellow RANGER_ICON 0 '' $RANGER_LEVEL
|
||||
typeset -g "_p9k__segment_val_${_p9k_prompt_side}[_p9k_segment_index]"=$_p9k__prompt[len+1,-1]
|
||||
}
|
||||
|
||||
_p9k_prompt_ranger_init() {
|
||||
|
@ -4262,9 +4260,7 @@ function instant_prompt_midnight_commander() {
|
|||
}
|
||||
|
||||
function prompt_nnn() {
|
||||
local -i len=$#_p9k__prompt
|
||||
_p9k_prompt_segment $0 6 $_p9k_color1 NNN_ICON 0 '' $NNNLVL
|
||||
typeset -g "_p9k__segment_val_${_p9k_prompt_side}[_p9k_segment_index]"=$_p9k__prompt[len+1,-1]
|
||||
}
|
||||
|
||||
_p9k_prompt_nnn_init() {
|
||||
|
|
Loading…
Reference in New Issue