help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Prompt issue with tramp shell


From: Colin Baxter
Subject: Re: Prompt issue with tramp shell
Date: Sun, 18 Oct 2020 15:37:35 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

>>>>> Daniel Martín <mardani29@yahoo.es> writes:

    > Ergus <spacibba@aol.com> writes:
    >> Hi:
    >> 
    >> I am trying to use a shell with tramp
    >> 
    >> C-x C-f ssh:/....  M-x shell
    >> 
    >> then I select bash.
    >> 
    >> and I have a problem that the prompt is shown twice like this:
    >> 
    >> []0; user@host:/home/user ^G[user@host /home/user]$
    >> 
    >> I am not sure if I need an extra config on emacs or in bash?

    > I can't reproduce the issue.  Check if you have a ~/.emacs_BASH or
    > ~/.emacs.d/init_BASH.sh that may be configuring the prompt
    > incorrectly.  You could also try to run /bin/sh instead; that will
    > ignore any ~/.bashrc from the remote system.

Try putting only the following three lines in your ~/.emacs_bash

 # -*- mode: sh; -*-
 # echo ""
 printf '\r\n%.0s' {1..50} ## Clears screen and puts single prompt at bottom


Best wishes,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]