我可以运行Windows版Git随附的Bash shell。我把这个放在我的.emacs
:
(defun git-bash () (interactive)
(let ((explicit-shell-file-name "D:/Program Files/git/bin/bash"))
(call-interactively 'shell)))
然后M-x git-bash
瞧,bash正在运行,但有些怪异:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
^[]0;MINGW64:/c/Users/M??rton^G
MĂĄrton@Marci MINGW64 /c/Users/MĂĄrton
$
并^[]
在我运行的每条命令后打印该行,从开始。编码也搞砸了。我该如何解决.emacs
?
MĂĄrton
应阅读Márton
)