SDS <[email protected]> writes:

> I've set up my ~/.bashrc initialization file to remove duplicates in the
> bash history list with
>
>> export HISTCONTROL="erasedups"
>
> but when TRAMP sends an ssh command, it writes to ~/.bash_history with
> the line
>
>> exec ssh -e none <hostname>
>
> without removing duplicates. Is there a way to prevent this? Ideally I'd
> like to prevent TRAMP commands from writing to bash history at all, but
> if that's not feasible then removing duplicates would be fine.
>
> Sorry if this is an elementary question, I'm inexperienced in these matters.

See the documentation of `tramp-remote-process-environment'. I guess the
following form in your .emacs would fit your needs:

(add-to-list 'tramp-remote-process-environment "HISTCONTROL=erasedups")

> Cheers,
>
> SDS

Best regards, Michael.

_______________________________________________
Tramp-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to