shell-mode で zsh の履歴を持ってくる
[emacs][linux]shell-modeでzsh_historyから履歴を持ってこれないものかなですが、以下を .emacs に追加で実現できそうです。と会社の同僚が教えてくれました。
;; zsh の履歴を shell-mode で使う
(if (not (getenv "HISTFILE"))
(setenv "HISTFILE" (expand-file-name "~/.zsh-history")))
(setq comint-input-ring-separator "n\(:.+:.;\)?"
comint-input-ring-size 10000)
~/.zsh-history 部分は環境に合わせて変更してくださいって感じで。
こりゃ便利だ。
About this entry
You’re currently reading “ shell-mode で zsh の履歴を持ってくる ,” an entry on forever 5 years old blog
- Published:
- 7pm on 2008/09/12
- Category:
- Emacs
- Related Posts:

No comments
Jump to comment form | comments rss [?] | trackback uri [?]