From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.help Subject: Re: Prompt issue with tramp shell Date: Wed, 21 Oct 2020 01:12:53 +0200 Message-ID: <20201020231253.fjgutn5uvqz3u3dz@Ergus> References: <20201016144103.r3npeqap7uo63ney.ref@Ergus> <20201016144103.r3npeqap7uo63ney@Ergus> <87a6wjpplc.fsf@yandex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30169"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Colin Baxter Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 21 01:13:45 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kV0p6-0007lf-PI for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 21 Oct 2020 01:13:44 +0200 Original-Received: from localhost ([::1]:45982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kV0p5-00079f-RL for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 20 Oct 2020 19:13:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kV0ok-00079S-NH for help-gnu-emacs@gnu.org; Tue, 20 Oct 2020 19:13:22 -0400 Original-Received: from sonic311-15.consmr.mail.bf2.yahoo.com ([74.6.131.125]:38595) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kV0oh-0001Gd-1Y for help-gnu-emacs@gnu.org; Tue, 20 Oct 2020 19:13:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1603235594; bh=zZJrH7SyH1sG3Mxg+t5Kzcm03LBPwVFvW4DdTdZxcoA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=mcpuOsFnTl2gIHpVf6n+fwbngBcepLkyAANLrzngx/ggocCNvrUjt5iN193dZ5FA4KWpNShvlmmY1l1oJb4g1jsUFDBVii/oURv1XOuu3ITAL+wy4Oafj6fU6nqYCE4gLW6jsAmGcoQj8RQkMnyzsD2HZ/RqYSxl7K0ly8iLT/nNK09xWF0iMYBC0eMXTdRIgfvstdM2khweIHqFHeTtrTVpgHTAaFpvis0gAwJLk+pfzXM7ITTflV4ABrVz36e6sJyw717ovrLHSuc0A4DAhnSLZR7PUV1q5Rv9A50NK6Hf3jckbJDTPAen2feI2f/W/9GGqytU+oi97Kd+1W+jHw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1603235594; bh=GTLoLM0FSE1SxoB8dl2UOAL/HL3Xn0CBDBmH8KwesXV=; h=Date:From:To:Subject; b=sO0Bo76lgzrlQfJY5U2CS19u4GAIHiBbXMQ3Y4UezK2/CrIGQEZUXCOrsHX7OZGNuNP7Hyc9UUfQTfJdhYMztg40J3MourJuMTKTdUT5ZP9fqTqCk48qKkBf4Lcfx+L950B5AnLBEIUg8RpCkSq2ILJy179QKCdWunrCirVKW5NZastq8/0Zd9YIafc691BgaeGGwQz8f7AKxktsBUs6VPQivNSmrIrhp94VgHRONqUM6q9qxKD59embx+r+YvINSAvvRwbqtArj8X/s18ogZkD1riH1KbN5xWFyyNOvnA3CYfwT+xlKYOvI99Z4uNiCkhzicDeAsvpHgs4qAMYSOQ== X-YMail-OSG: XpT1Kl8VM1kLli9hngRO3gmXWZn4bwSs51kUCAuMOh716vqZ2HAuTa5F6QvOaYK v8PQ9xKCtUFLYLroIgVS49RsCPp3J8BvLN3Bt7skOYOXQ9qyhpvQyQHsyavMhs32d2Bkfb4efSPL WMTQeaCFNAe3rZ.81eyPH6MkI75fBdj4h0kXi13gJkOIIT6SKtCbns9IWsvznPnSwTiuc2YOq4n4 uptMS1t.PmmxfeMxieEqh_SZrZ3hkahoDovIOMRca10Qlc.Y2J7zAl00_lJC0.L357um0vIOo.OC sSpbeKSwejRqt8e44YZr1Lj9kAHW6bI84Eyaw0MJwIFUFeS5_uRyRamLWm8fR1CbFf994YBIsnBC OtZlsuL6j_7U87I6UPjpN81aY72KGn1eRubP1sTcZcYWM58Gw5xl4LcgCQ3Um1L64ulm_KHbq3bv ErR48a48irZSpYCXKKws5RM8bQExsNLmZw6wt_lXAUf3NN4v8CflQ42IxMDc35j_g0gf691s.CQT GocrLIg9_ru_KOfpwzlQ2psRdEcVq7ST1Ja.riLA.k1htCTCI_rKa0_ZlGKECq7.gnnKRuNOUcYb YHHhdGQgVAMJwLvuDfVfhzlPsjnxD4bwSUVN1q1vMwArZaU0c4vmgADJ7q4bKT.yq38JeFdjWbf_ DMsJCFYsCZkA.R5gD68MEpXG9HjibmHaI9_iQm5DJyz7.3uqpYxCluAypeeiwfCzDiBqMfIoSNto MdPl7bdsr8xjypIQ2ZMV7dglShx_HZW5XCxVxKfI2_iK.ecYh3Ccbpk7BoygFDSLcsfB69RHhMpA 4GkjhNcZUIvYjQFP1i9_n_TFEchy6FL0mmVh4qZedx Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.bf2.yahoo.com with HTTP; Tue, 20 Oct 2020 23:13:14 +0000 Original-Received: by smtp410.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 849620847c0144e3db7d386e345db6a8; Tue, 20 Oct 2020 23:13:09 +0000 (UTC) Content-Disposition: inline In-Reply-To: <87a6wjpplc.fsf@yandex.com> X-Mailer: WebService/1.1.16868 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Received-SPF: pass client-ip=74.6.131.125; envelope-from=spacibba@aol.com; helo=sonic311-15.consmr.mail.bf2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/20 19:13:14 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124600 Archived-At: On Sun, Oct 18, 2020 at 03:37:35PM +0100, Colin Baxter wrote: >>>>>> Daniel Mart=EDn writes: > > > Ergus 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 bott= om > > >Best wishes, > > Hi I tried this ~/.emacs_bash thing and I have the same issue. The second prompt changed a bit but it is still duplicated: =1B]0; ergus@rppi:/home/ergus =07[ergus@rppi ~]$ I also tried eshell but it is extremely slow almost unusable... Any other idea? Best, Ergus