Reputation: 6880
I started using tramp with emacs as per the discussion here (Open file via SSH and Sudo with Emacs) in order to use my emacs configs without having to install them on the server/user I was sshing to. Apparently the default setting of this sets HISTFILE=/dev/null, and I got a concerned email from my company's infosec team asking why I was doing this. Is there a way to turn this setting off and log history the normal way? Would like to keep using this tool in compliance with security rules.
Upvotes: 2
Views: 592
Reputation: 1656
Setting HISTFILE=/dev/null is disabled in development version of Tramp, because there is a bug in bash which corrupts /dev/null then. Likely, the security department of your company is concerned about this.
If you have a recent Tramp (say the one bundled with Emacs 24.5), setting HISTFILE=/dev/null is hardwired in tramp-sh.el. You would need to patch it there.
If you install a newer Tramp version like 2.2.12 (see the Tramp manual how to do this), you could use the variable tramp-histfile-override
to set your own value. Per default it is set to ".tramp_history", but there are also other possibilities. See the docstring of that variable.
Upvotes: 3