add nnn prompt segment; see #342
This commit is contained in:
parent
a9620d7dca
commit
acb6b68a37
5 changed files with 36 additions and 0 deletions
|
@ -122,6 +122,7 @@ function _p9k_init_icons() {
|
|||
GCLOUD_ICON 'G'
|
||||
LUA_ICON 'lua'
|
||||
PERL_ICON 'perl'
|
||||
NNN_ICON 'nnn'
|
||||
)
|
||||
;;
|
||||
'awesome-fontconfig')
|
||||
|
@ -231,6 +232,7 @@ function _p9k_init_icons() {
|
|||
GCLOUD_ICON 'G'
|
||||
LUA_ICON 'lua'
|
||||
PERL_ICON 'perl'
|
||||
NNN_ICON 'nnn'
|
||||
)
|
||||
;;
|
||||
'awesome-mapped-fontconfig')
|
||||
|
@ -344,6 +346,7 @@ function _p9k_init_icons() {
|
|||
GCLOUD_ICON 'G'
|
||||
LUA_ICON 'lua'
|
||||
PERL_ICON 'perl'
|
||||
NNN_ICON 'nnn'
|
||||
)
|
||||
;;
|
||||
'nerdfont-complete'|'nerdfont-fontconfig')
|
||||
|
@ -454,6 +457,7 @@ function _p9k_init_icons() {
|
|||
GCLOUD_ICON '\uF7B7' #
|
||||
LUA_ICON '\uE620' #
|
||||
PERL_ICON '\uE769' #
|
||||
NNN_ICON 'nnn'
|
||||
)
|
||||
;;
|
||||
*)
|
||||
|
@ -563,6 +567,7 @@ function _p9k_init_icons() {
|
|||
GCLOUD_ICON 'G'
|
||||
LUA_ICON 'lua'
|
||||
PERL_ICON 'perl'
|
||||
NNN_ICON 'nnn'
|
||||
)
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -3678,6 +3678,15 @@ function instant_prompt_midnight_commander() {
|
|||
_p9k_prompt_segment prompt_midnight_commander $_p9k_color1 yellow MIDNIGHT_COMMANDER_ICON 0 '$MC_TMPDIR' ''
|
||||
}
|
||||
|
||||
function prompt_nnn() {
|
||||
[[ $NNNLVL == (0|) ]] && return
|
||||
_p9k_prompt_segment $0 6 $_p9k_color1 NNN_ICON 0 '' $NNNLVL
|
||||
}
|
||||
|
||||
function instant_prompt_nnn() {
|
||||
_p9k_prompt_segment prompt_nnn 6 $_p9k_color1 NNN_ICON 1 '${NNNLVL:#0}' '$NNNLVL'
|
||||
}
|
||||
|
||||
function prompt_vim_shell() {
|
||||
[[ -n $VIMRUNTIME ]] || return
|
||||
_p9k_prompt_segment $0 green $_p9k_color1 VIM_ICON 0 '' ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue