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:
parent
1e2300d39b
commit
3c24374d14
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user