[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Preventing TRAMP commands from appearing in bash history
From: |
Michael Albinus |
Subject: |
Re: Preventing TRAMP commands from appearing in bash history |
Date: |
Sun, 10 Nov 2024 13:58:36 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Bartosz Kaczyński <bkaczynski@posteo.net> writes:
> Hello TRAMP users,
Hi Bart,
> I frequently use TRAMP with SSH to execute commands on remote servers.
> However, I notice that TRAMP commands, such as:
>
> exec env TERM='dumb' INSIDE_EMACS='31.0.50,tramp:2.8.0-pre' ENV=''
> HISTFILE=~/.tramp_history PROMPT_COMMAND=''
> PS1=///a3baaba9ef094600cb66d45cb63c51ec\#\$ PS2='' PS3='' /bin/sh -i \
>
> are left in the remote server's bash history.
>
> I would like to prevent TRAMP from leaving these traces in the bash
> history. I have reviewed the documentation but couldn't find a direct
> solution.
>
> Is there a way to configure TRAMP or the remote shell to avoid this? Any
> help or guidance would be greatly appreciated.
Read the Tramp manual at (info "(tramp) Remote processes") , subsection
"6.6.2 Managing remote shell history".
> Thank you!
> Bart
Best regards, Michael.