Merge pull request #42 from caesar/theme_powerline_fonts

Add option to not use Powerline glyphs
pull/45/head
Justin Hileman 8 years ago
commit bece163f67

@ -12,7 +12,10 @@ Be sure to have Oh My Fish installed. Then just:
omf install bobthefish
You will probably need a [Powerline-patched font][patching] for this to work.
You will need a [Powerline-patched font][patching] for this to work, unless you enable the compatibility fallback option:
set -g theme_powerline_fonts no
[I recommend picking one of these][fonts]. For more advanced awesome, install a [nerd fonts patched font][nerd-fonts], and enable nerd fonts support:
set -g theme_nerd_fonts yes
@ -76,6 +79,7 @@ set -g theme_title_display_path no
set -g theme_title_use_abbreviated_path no
set -g theme_date_format "+%a %H:%M"
set -g theme_avoid_ambiguous_glyphs yes
set -g theme_powerline_fonts no
set -g theme_nerd_fonts yes
set -g theme_show_exit_status yes
set -g default_user your_normal_user

@ -29,6 +29,7 @@
# set -g theme_display_vi yes
# set -g theme_display_vi_hide_mode default
# set -g theme_avoid_ambiguous_glyphs yes
# set -g theme_powerline_fonts no
# set -g theme_nerd_fonts yes
# set -g theme_show_exit_status yes
# set -g default_user your_normal_user
@ -627,6 +628,16 @@ function fish_prompt -d 'bobthefish, a fish theme optimized for awesome'
set -l __bobthefish_left_black_arrow_glyph \uE0B2
set -l __bobthefish_left_arrow_glyph \uE0B3
if [ "$theme_powerline_fonts" = "no" ]
set __bobthefish_branch_glyph \u2387
set __bobthefish_ln_glyph ''
set __bobthefish_padlock_glyph ''
set __bobthefish_right_black_arrow_glyph ''
set __bobthefish_right_arrow_glyph ''
set __bobthefish_left_black_arrow_glyph ''
set __bobthefish_left_arrow_glyph ''
end
# Additional glyphs
set -l __bobthefish_detached_glyph \u27A6
set -l __bobthefish_nonzero_exit_glyph '! '

@ -34,6 +34,9 @@ end
function fish_right_prompt -d 'bobthefish is all about the right prompt'
set -l __bobthefish_left_arrow_glyph \uE0B3
if [ "$theme_powerline_fonts" = "no" ]
set __bobthefish_left_arrow_glyph '<'
end
set_color $fish_color_autosuggestion

Loading…
Cancel
Save