From 765badec733e5adcfaf81c4a6381991452e03c0e Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Thu, 24 Jun 2021 16:11:22 -0700 Subject: [PATCH] Xonsh TRAMP support --- xonsh/rc.xsh | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/xonsh/rc.xsh b/xonsh/rc.xsh index 880cbb0..a67a711 100644 --- a/xonsh/rc.xsh +++ b/xonsh/rc.xsh @@ -79,16 +79,12 @@ aliases["vv"] = find_venv # # 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 +# Fix prompt for Emacs TRAMP +# https://github.com/oh-my-fish/theme-bobthefish/issues/148 +if $TERM == "dumb": + $PROMPT = "$ " + $RIGHT_PROMPT = None + $BOTTOM_TOOLBAR = None # autojump equivalent if shutil.which("zoxide"):