parent
37a648ac28
commit
6dbf5eda31
@ -72,6 +72,16 @@ prompt_context() {
|
|||||||
fi
|
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
|
# Git: branch/detached head, dirty status
|
||||||
prompt_git() {
|
prompt_git() {
|
||||||
local color ref
|
local color ref
|
||||||
@ -122,6 +132,7 @@ prompt_eriner_main() {
|
|||||||
CURRENT_BG='NONE'
|
CURRENT_BG='NONE'
|
||||||
prompt_status
|
prompt_status
|
||||||
prompt_context
|
prompt_context
|
||||||
|
prompt_ranger
|
||||||
prompt_dir
|
prompt_dir
|
||||||
prompt_git
|
prompt_git
|
||||||
prompt_end
|
prompt_end
|
||||||
|
Reference in New Issue
Block a user