aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2022-12-16 17:50:58 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2022-12-16 17:50:58 +0300
commitc08975d0f63875974c07cdd7ae13dbd270fc80fd (patch)
treead9c9d309a375686e49844c46aa20388b2dfc420 /internal/p10k.zsh
parenta7bf4c83dee601f91aaabf3956c93f5ebe26699d (diff)
parent07b5a607d46672e88167608414cace36e134f971 (diff)
Merge branch 'UtkarshVerma-master'
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh12
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index b90b747e..3f6da4fd 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -4921,6 +4921,18 @@ function instant_prompt_nnn() {
_p9k_prompt_segment prompt_nnn 6 $_p9k_color1 NNN_ICON 1 '${NNNLVL:#0}' '$NNNLVL'
}
+function prompt_lf() {
+ _p9k_prompt_segment $0 6 $_p9k_color1 LF_ICON 0 '' $LF_LEVEL
+}
+
+_p9k_prompt_lf_init() {
+ typeset -g "_p9k__segment_cond_${_p9k__prompt_side}[_p9k__segment_index]"='${LF_LEVEL:#0}'
+}
+
+function instant_prompt_lf() {
+ _p9k_prompt_segment prompt_lf 6 $_p9k_color1 LF_ICON 1 '${LF_LEVEL:#0}' '$LF_LEVEL'
+}
+
function prompt_xplr() {
local -i len=$#_p9k__prompt _p9k__has_upglob
_p9k_prompt_segment $0 6 $_p9k_color1 XPLR_ICON 0 '' ''