mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2025-06-13 13:03:54 +00:00
prompt: Add ranger indicator
This commit is contained in:
parent
f3301c2e2c
commit
956a037907
@ -851,6 +851,21 @@ function __bobthefish_prompt_virtualgo -S -d 'Display current Go virtual environ
|
|||||||
set_color normal
|
set_color normal
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function __bobthefish_prompt_ranger -S -d 'Display current ranger indicator'
|
||||||
|
[ "$theme_display_ranger" = 'no' -o -z "$RANGER_LEVEL" ]
|
||||||
|
and return
|
||||||
|
|
||||||
|
__bobthefish_start_segment $color_ranger
|
||||||
|
echo -ns $ranger_glyph
|
||||||
|
|
||||||
|
if [ "$theme_display_ranger_level" = 'yes' ]
|
||||||
|
echo -ns "$RANGER_LEVEL"
|
||||||
|
end
|
||||||
|
|
||||||
|
echo -ns ' '
|
||||||
|
set_color normal
|
||||||
|
end
|
||||||
|
|
||||||
function __bobthefish_prompt_desk -S -d 'Display current desk environment'
|
function __bobthefish_prompt_desk -S -d 'Display current desk environment'
|
||||||
[ "$theme_display_desk" = 'no' -o -z "$DESK_ENV" ]
|
[ "$theme_display_desk" = 'no' -o -z "$DESK_ENV" ]
|
||||||
and return
|
and return
|
||||||
@ -1077,6 +1092,7 @@ function fish_prompt -d 'bobthefish, a fish theme optimized for awesome'
|
|||||||
__bobthefish_prompt_rubies
|
__bobthefish_prompt_rubies
|
||||||
__bobthefish_prompt_virtualfish
|
__bobthefish_prompt_virtualfish
|
||||||
__bobthefish_prompt_virtualgo
|
__bobthefish_prompt_virtualgo
|
||||||
|
__bobthefish_prompt_ranger
|
||||||
__bobthefish_prompt_nvm
|
__bobthefish_prompt_nvm
|
||||||
|
|
||||||
set -l real_pwd (__bobthefish_pwd)
|
set -l real_pwd (__bobthefish_pwd)
|
||||||
|
@ -21,6 +21,7 @@ function __bobthefish_glyphs -S -d 'Define glyphs used by bobthefish'
|
|||||||
|
|
||||||
set -x ruby_glyph ''
|
set -x ruby_glyph ''
|
||||||
set -x go_glyph ''
|
set -x go_glyph ''
|
||||||
|
set -x ranger_glyph 'R'
|
||||||
|
|
||||||
# Desk glyphs
|
# Desk glyphs
|
||||||
set -x desk_glyph \u25F2
|
set -x desk_glyph \u25F2
|
||||||
|
Loading…
Reference in New Issue
Block a user