Kai, Michael, 

Thanks for your replies. I understand that disabling history is a feature. 

I still like to have it, and had luck by resetting HISTFILE as suggested. 
Adding an entry to .emacs.d/init_bash.sh did it. 

Best regards and thanks for tramp. 
Guillaume 

----- Mail original -----

De: "Michael Albinus" <[email protected]> 
À: "Kai Großjohann" <[email protected]> 
Cc: "Guillaume KOENIG" <[email protected]>, [email protected] 
Envoyé: Samedi 15 Novembre 2014 16:57:55 
Objet: Re: tramp remote shell history 

"Kai Großjohann" <[email protected]> writes: 

> Hi Guillaume, 

Hi, 

> The shell connection established by Tramp is not intended for 
> interactive use. The idea is that Tramp itself uses it in the 
> background to transfer the files and to get a list of directories for 
> filename completion and suchlike. So from that perspective, I think 
> shell history is not needed -- the Emacs built-in history of C-x C-f 
> and the like should be sufficient. 

Indeed, that's the majority of entries which would go into 
.history. People have complained about, and Tramp disables shell history 
by default, therefore. 

If you want to get the history of your actions after running "M-x 
shell", you could reset it in that shell by setting $HISTFILE to a 
proper value. 

If you run "M-x eshell", no special actions are needed, because eshell 
keeps its own history. 

> Kai 

Best regards, Michael. 

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

Reply via email to