1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-01 11:14:55 +00:00

(shell-mode): Don't read history from /dev/null.

This commit is contained in:
Richard M. Stallman 1994-07-01 20:45:59 +00:00
parent 1e2300d39b
commit 3c24374d14

View File

@ -346,6 +346,8 @@ buffer."
(cond ((string-equal shell "bash") "~/.bash_history")
((string-equal shell "ksh") "~/.sh_history")
(t "~/.history"))))
(if (equal comint-input-ring-file-name "/dev/null")
(setq comint-input-ring-file-name nil))
(setq shell-dirstack-query
(if (string-match "^k?sh$" shell) "pwd" "dirs")))
(run-hooks 'shell-mode-hook)