[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]
Shell mode doesn't read .bash_histry
- X-ml-count: 3544
- Subject: Shell mode doesn't read .bash_histry
- From: Motohiko Minakuchi <zxcv@xxxxxxxxxxxxxxx>
- Date: Sun, 15 Apr 2001 01:44:48 +0900 (JST)
- X-mailer: Mew version 1.94.2 on Emacs 20.7 / Mule 4.1 (AOI)
水口@京都 と申します。
Win98SE 上の Meadow1.14 の shell mode で bash を使用していますが、
.emacs で
> (setq explicit-shell-file-name "bash.exe")
とすると M-p (comint-previous-input) が ~/.bash_histry を読んでくれず、
shell-mode 起動前のコマンド履歴が使えません。
~/.bash_histry の代りに ~/.histry を読もうとしている様なので、
> HISTFILE=~/.bash_history
という環境変数を定義すれば解決しました。
一方、
> (setq explicit-shell-file-name "bash")
ならば HISTFILE 変数無でも問題は起りません。
問題の起る方のコーディングは Meadow1.14 の配布物である dot.emacs.ja 中
でコメントになっていたものから転記したものですが、.exe は付けた方が良
いのでしょうか?
PATH上に bash.bat というファイルが無いなら大丈夫ですか?
よろしくお願いします。
--
水口 元彦 (みなくち もとひこ)
zxcv@xxxxxxxxxxxxxxx