|
From: | Peter Lee |
Subject: | Re: changing default shell |
Date: | Tue, 22 Mar 2005 22:39:46 GMT |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (windows-nt) |
>>>> Justin writes: > The problem is when I go: M-x shell it still uses the cripled ms > command prompt. I used this at one point... but I was using native ntemacs vs. cygwin emacs. Still... it might help. (cond ((eq system-type 'windows-nt) (setq shell-file-name "bash") (setenv "PATH" (concat pal-cygwin-dir "/bin;" (getenv "PATH"))) (setenv "SHELL" shell-file-name) (setq-default exec-path (cons (concat pal-cygwin-dir "/bin") exec-path) explicit-sh-args '("-login" "-i") process-coding-system-alist '(("bash" . undecided-unix) ("ssh" . undecided-unix))) (add-hook 'shell-mode-hook (lambda () (setq-default comint-scroll-show-maximum-output 'this comint-completion-addsuffix t comint-eol-on-send t w32-quote-process-args ?\") (make-local-variable 'comint-completion-addsuffix))) (defun pal-comint-strip-ctrl-m (&optional string) "Strip trailing `^M' characters from the current output group." (interactive) (replace-regexp-in-string "" "" string nil nil nil)) (add-hook 'comint-preoutput-filter-functions 'pal-comint-strip-ctrl-m)))
[Prev in Thread] | Current Thread | [Next in Thread] |