aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2015-02-02 16:42:01 +0100
committerMichael Albinus2015-02-02 16:42:01 +0100
commit954ca0f017f62f52ee679f2aa68effb20c917278 (patch)
tree2a1a0ddf6d23b48d02600a08bc74b4a9022c2b8a
parent8ad2ee33a1107afe2d35e3ba4506d45dbb4c13d2 (diff)
downloademacs-954ca0f017f62f52ee679f2aa68effb20c917278.tar.gz
emacs-954ca0f017f62f52ee679f2aa68effb20c917278.zip
* net/tramp-sh.el (tramp-histfile-override): Use `unset' as default.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/net/tramp-sh.el15
2 files changed, 9 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 382b6537af6..6e5b078f94d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -8,7 +8,8 @@
8 8
92015-02-02 Michael Albinus <michael.albinus@gmx.de> 92015-02-02 Michael Albinus <michael.albinus@gmx.de>
10 10
11 * net/tramp-sh.el (tramp-histfile-override): Add another choice 'unset. 11 * net/tramp-sh.el (tramp-histfile-override): Add another choice
12 'unset. Use it as default.
12 (tramp-open-shell, tramp-maybe-open-connection): Support it. 13 (tramp-open-shell, tramp-maybe-open-connection): Support it.
13 (Bug#19731) 14 (Bug#19731)
14 15
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index ae0dad715bf..20e32e9df6b 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -65,13 +65,13 @@ files conditionalize this setup based on the TERM environment variable."
65 :type 'string) 65 :type 'string)
66 66
67;;;###tramp-autoload 67;;;###tramp-autoload
68(defcustom tramp-histfile-override "/dev/null" 68(defcustom tramp-histfile-override 'unset
69 "When invoking a shell, override the HISTFILE with this value. 69 "When invoking a shell, override the HISTFILE with this value.
70By default, the HISTFILE is set to the \"/dev/null\" value, which 70By default, it is set to the symbol `unset', which unsets any
71is special on Unix systems and indicates the shell history should 71setting of HISTFILE. When setting to a string, it redirects the
72not be logged (this avoids clutter due to Tramp commands). 72shell history to that file. Be careful when setting to
73 73\"/dev/null\"; this might result in undesired results when using
74The symbol `unset' removes any setting of HISTFILE. 74\"bash\" as shell.
75 75
76If you set this variable to nil, however, the *override* is 76If you set this variable to nil, however, the *override* is
77disabled, so the history will go to the default storage 77disabled, so the history will go to the default storage
@@ -79,8 +79,7 @@ location, e.g. \"$HOME/.sh_history\"."
79 :group 'tramp 79 :group 'tramp
80 :version "25.1" 80 :version "25.1"
81 :type '(choice (const :tag "Do not override HISTFILE" nil) 81 :type '(choice (const :tag "Do not override HISTFILE" nil)
82 (const :tag "Unset HISTFILE" 'unset) 82 (const :tag "Unset HISTFILE" unset)
83 (const :tag "Empty the history (/dev/null)" "/dev/null")
84 (string :tag "Redirect to a file"))) 83 (string :tag "Redirect to a file")))
85 84
86;;;###tramp-autoload 85;;;###tramp-autoload