__bobthefish_glyphs.fish 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. function __bobthefish_glyphs -S -d 'Define glyphs used by bobthefish'
  2. # Powerline glyphs
  3. set -x branch_glyph \uE0A0
  4. set -x right_black_arrow_glyph \uE0B0
  5. set -x right_arrow_glyph \uE0B1
  6. set -x left_black_arrow_glyph \uE0B2
  7. set -x left_arrow_glyph \uE0B3
  8. # Additional glyphs
  9. set -x detached_glyph \u27A6
  10. set -x tag_glyph \u2302
  11. set -x nonzero_exit_glyph '! '
  12. set -x superuser_glyph '$ '
  13. set -x bg_job_glyph '% '
  14. set -x hg_glyph \u263F
  15. # Python glyphs
  16. set -x superscript_glyph \u00B9 \u00B2 \u00B3
  17. set -x virtualenv_glyph \u25F0
  18. set -x pypy_glyph \u1D56
  19. set -x ruby_glyph ''
  20. set -x go_glyph ''
  21. # Desk glyphs
  22. set -x desk_glyph \u25F2
  23. # Vagrant glyphs
  24. set -x vagrant_running_glyph \u2191 # ↑ 'running'
  25. set -x vagrant_poweroff_glyph \u2193 # ↓ 'poweroff'
  26. set -x vagrant_aborted_glyph \u2715 # ✕ 'aborted'
  27. set -x vagrant_saved_glyph \u21E1 # ⇡ 'saved'
  28. set -x vagrant_stopping_glyph \u21E3 # ⇣ 'stopping'
  29. set -x vagrant_unknown_glyph '!' # strange cases
  30. # Git glyphs
  31. set -x git_dirty_glyph '*'
  32. set -x git_staged_glyph '~'
  33. set -x git_stashed_glyph '$'
  34. set -x git_untracked_glyph '…'
  35. set -x git_ahead_glyph \u2191 # '↑'
  36. set -x git_behind_glyph \u2193 # '↓'
  37. set -x git_plus_glyph '+'
  38. set -x git_minus_glyph '-'
  39. set -x git_plus_minus_glyph '±'
  40. # Disable Powerline fonts
  41. if [ "$theme_powerline_fonts" = "no" ]
  42. set branch_glyph \u2387
  43. set right_black_arrow_glyph ''
  44. set right_arrow_glyph ''
  45. set left_black_arrow_glyph ''
  46. set left_arrow_glyph ''
  47. end
  48. # Use prettier Nerd Fonts glyphs
  49. if [ "$theme_nerd_fonts" = "yes" ]
  50. set branch_glyph \uF418
  51. set detached_glyph \uF417
  52. set tag_glyph \uF412
  53. set virtualenv_glyph \uE73C ' '
  54. set ruby_glyph \uE791 ' '
  55. set go_glyph \uE626 ' '
  56. set vagrant_running_glyph \uF431 # ↑ 'running'
  57. set vagrant_poweroff_glyph \uF433 # ↓ 'poweroff'
  58. set vagrant_aborted_glyph \uF468 # ✕ 'aborted'
  59. set vagrant_unknown_glyph \uF421 # strange cases
  60. set git_dirty_glyph \uF448 '' # nf-oct-pencil
  61. set git_staged_glyph \uF0C7 '' # nf-fa-save
  62. set git_stashed_glyph \uF0C6 '' # nf-fa-paperclip
  63. set git_untracked_glyph \uF128 '' # nf-fa-question
  64. # set git_untracked_glyph \uF141 '' # nf-fa-ellipsis_h
  65. set git_ahead_glyph \uF47B # nf-oct-chevron_up
  66. set git_behind_glyph \uF47C # nf-oct-chevron_down
  67. set git_plus_glyph \uF0DE # fa-sort-asc
  68. set git_minus_glyph \uF0DD # fa-sort-desc
  69. set git_plus_minus_glyph \uF0DC # fa-sort
  70. end
  71. # Avoid ambiguous glyphs
  72. if [ "$theme_avoid_ambiguous_glyphs" = "yes" ]
  73. set git_untracked_glyph '...'
  74. end
  75. end