mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2025-06-13 13:03:54 +00:00
Fix: Use a simple prompt on dumb terminals.
Dumb terminals don't like this fancy prompt. This is a really a workaround for loading the theme on demand, but it greatly simplifies managing plugins and allows just relying on current plugin managers.
This commit is contained in:
parent
e31962395f
commit
7491f42cf5
@ -948,6 +948,12 @@ function fish_prompt -d 'bobthefish, a fish theme optimized for awesome'
|
|||||||
# Save the last status for later (do this before the `set` calls below)
|
# Save the last status for later (do this before the `set` calls below)
|
||||||
set -l last_status $status
|
set -l last_status $status
|
||||||
|
|
||||||
|
# Use a simple prompt on dumb terminals.
|
||||||
|
if test $TERM = "dumb"
|
||||||
|
echo "> "
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
__bobthefish_glyphs
|
__bobthefish_glyphs
|
||||||
__bobthefish_colors $theme_color_scheme
|
__bobthefish_colors $theme_color_scheme
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user