From b66cf98483dd043fdc8c108f716aca59be3f839f Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Mon, 7 Dec 2020 11:16:24 -0800 Subject: [PATCH] Fish: Fall back to simple prompt for dumb terms --- fish/config.fish | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/fish/config.fish b/fish/config.fish index 3678c89..93bba8b 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -28,3 +28,14 @@ end # Hybrid Vi Mode set -g fish_key_bindings hybrid_bindings + +# Fix prompt for Emacs TRAMP +# https://github.com/oh-my-fish/theme-bobthefish/issues/148 +if test "$TERM" = "dumb" + function fish_prompt + echo "\$ " + end + function fish_right_prompt; end + function fish_greeting; end + function fish_title; end +end