tramp-devel
[Top][All Lists]
Advanced

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

Preventing TRAMP commands from appearing in bash history


From: Bartosz Kaczyński
Subject: Preventing TRAMP commands from appearing in bash history
Date: Sun, 10 Nov 2024 06:39:45 +0000

Hello TRAMP users,

I frequently use TRAMP with SSH to execute commands on remote servers.
However, I notice that TRAMP commands, such as:

--8<---------------cut here---------------start------------->8---
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 \
--8<---------------cut here---------------end--------------->8---

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.

Thank you!
Bart



reply via email to

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