Add lf segment
This commit is contained in:
parent
7f2950f9cc
commit
07b5a607d4
7 changed files with 47 additions and 0 deletions
|
@ -134,6 +134,7 @@ function _p9k_init_icons() {
|
|||
LUA_ICON 'lua'
|
||||
PERL_ICON 'perl'
|
||||
NNN_ICON 'nnn'
|
||||
LF_ICON 'lf'
|
||||
XPLR_ICON 'xplr'
|
||||
TIMEWARRIOR_ICON 'tw'
|
||||
TASKWARRIOR_ICON 'task'
|
||||
|
@ -267,6 +268,7 @@ function _p9k_init_icons() {
|
|||
LUA_ICON 'lua'
|
||||
PERL_ICON 'perl'
|
||||
NNN_ICON 'nnn'
|
||||
LF_ICON 'lf'
|
||||
XPLR_ICON 'xplr'
|
||||
TIMEWARRIOR_ICON 'tw'
|
||||
TASKWARRIOR_ICON 'task'
|
||||
|
@ -403,6 +405,7 @@ function _p9k_init_icons() {
|
|||
LUA_ICON 'lua'
|
||||
PERL_ICON 'perl'
|
||||
NNN_ICON 'nnn'
|
||||
LF_ICON 'lf'
|
||||
XPLR_ICON 'xplr'
|
||||
TIMEWARRIOR_ICON 'tw'
|
||||
TASKWARRIOR_ICON 'task'
|
||||
|
@ -537,6 +540,7 @@ function _p9k_init_icons() {
|
|||
LUA_ICON '\uE620' #
|
||||
PERL_ICON '\uE769' #
|
||||
NNN_ICON 'nnn'
|
||||
LF_ICON 'lf'
|
||||
XPLR_ICON 'xplr'
|
||||
TIMEWARRIOR_ICON '\uF49B' #
|
||||
TASKWARRIOR_ICON '\uF4A0 ' #
|
||||
|
@ -668,6 +672,7 @@ function _p9k_init_icons() {
|
|||
LUA_ICON 'lua'
|
||||
PERL_ICON 'perl'
|
||||
NNN_ICON 'nnn'
|
||||
LF_ICON 'lf'
|
||||
XPLR_ICON 'xplr'
|
||||
TIMEWARRIOR_ICON 'tw'
|
||||
TASKWARRIOR_ICON 'task'
|
||||
|
@ -801,6 +806,7 @@ function _p9k_init_icons() {
|
|||
LUA_ICON 'lua'
|
||||
PERL_ICON 'perl'
|
||||
NNN_ICON 'nnn'
|
||||
LF_ICON 'lf'
|
||||
XPLR_ICON 'xplr'
|
||||
TIMEWARRIOR_ICON 'tw'
|
||||
TASKWARRIOR_ICON 'task'
|
||||
|
|
|
@ -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 '' ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue