From 2c560f8c175dd12df670b989c27c3c7b9ac56878 Mon Sep 17 00:00:00 2001 From: Dietrich Daroch Date: Tue, 26 Mar 2019 14:51:09 +0000 Subject: [PATCH] Fix: Use a simple prompt on dumb terminals. (#171) 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. --- fish_prompt.fish | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fish_prompt.fish b/fish_prompt.fish index b0b541e..8beebd3 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -969,6 +969,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) set -l last_status $status + # Use a simple prompt on dumb terminals. + if test $TERM = "dumb" + echo "> " + return + end + __bobthefish_glyphs __bobthefish_colors $theme_color_scheme