Usando el shell msysgit en Emacs para Windows

Usando el shell msysgit en Emacs para Windows

Soy relativamente nuevo en Emacs y estoy intentando configurar emacs para permitir que el siguiente comando abra el shell msysgit.

M-x bash-shell

Agregué el siguiente fragmento a mi init.el.

(defun bash-shell ()
  "Run git bash in shell mode."
  (interactive)
  (let ((explicit-shell-file-name "C:/Dev/Apps/Git/bin/sh.exe")
    (shell-file-name explicit-shell-file-name)
    (explicit-sh.exe-args '("--login" "-i")))
    (call-interactively 'shell)))

Parece funcionar, pero no como esperaba. Comienza con el siguiente resultado.

Welcome to Git (version 1.8.4-preview20130916)


Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.

Pero luego se queda atascado. Sin embargo, puedo ingresar comandos estándar (por ejemplo, ls, pwd, ...), pero mi .bashrc no parece ejecutarse. Sin embargo, cuando lo hago exit, parece iniciarlo correctamente o al menos ejecutar .bashrc, lo cual me resulta muy confuso.

Welcome to Git (version 1.8.4-preview20130916)


Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.
pwd
/c/Dev/Apps/Emacs/emacs-23.3/bin
uname
MINGW32_NT-5.1
ll
bash: line 3: ll: command not found
exit
laiwib@WZUR5250815 /c/D.A.E.e/emacs-23.3/bin  $ 

En cualquier caso no se comporta igual que si inicio Git Bash en Windows

C:\WINDOWS\system32\cmd.exe /c ""C:\Dev\Apps\Git\bin\sh.exe" --login -i"

lo que me da lo siguiente

Welcome to Git (version 1.8.4-preview20130916)


Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.
Agent pid 4384
laiwib@WZUR5250815 ~ (git::master) $ ll
total 16
drwxr-xr-x    1 laiwib   Administ        0 Oct 21  2012 WINDOWS
drwxr-xr-x    1 laiwib   Administ        0 Oct 23  2012 .eclipse
-rw-r--r--    1 laiwib   Administ       38 Oct 23  2012 .dbshell
...

¿Cómo puedo hacer que se comporte como Git Bash sin llamarlo exitmanualmente?

información relacionada