1
0
Fork 0
mirror of synced 2024-11-16 13:05:35 -05:00

[prompt] add ranger prompt to eriner theme

This commit is contained in:
Tmplt 2016-07-17 14:53:34 +02:00
parent 074677207c
commit e51b20e837

View file

@ -72,6 +72,16 @@ prompt_context() {
fi
}
# Ranger: <https://github.com/ranger/ranger>, which can spawn ${SHELL}
# under its own process
prompt_ranger() {
if [[ $((RANGER_LEVEL)) -ne 0 ]]; then
local color=blue
prompt_segment ${color} ${PRIMARY_FG}
print -Pn " r"
fi
}
# Git: branch/detached head, dirty status
prompt_git() {
local color ref
@ -122,6 +132,7 @@ prompt_eriner_main() {
CURRENT_BG='NONE'
prompt_status
prompt_context
prompt_ranger
prompt_dir
prompt_git
prompt_end