저는 Emacs를 처음 접했고 다음 명령으로 msysgit 쉘을 열 수 있도록 emacs를 설정하려고 합니다.
M-x bash-shell
내 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)))
작동하는 것 같지만 내가 기대하는 방식은 아닙니다. 다음 출력으로 시작됩니다.
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.
그러나 막히게됩니다. 그러나 표준 명령(예: ls, pwd, ...)을 입력할 수 있지만 내 .bashrc가 실행되지 않는 것 같습니다. 그러나 내가 exit
제대로 시작하거나 최소한 .bashrc를 실행하는 것처럼 보이는데, 이는 나에게 매우 혼란스럽습니다.
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 $
어쨌든 Windows에서 Git Bash를 시작하는 것과 동일하게 동작하지 않습니다.
C:\WINDOWS\system32\cmd.exe /c ""C:\Dev\Apps\Git\bin\sh.exe" --login -i"
그것은 나에게 다음을 제공합니다
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
...
수동으로 호출하지 않고 Git Bash처럼 작동하도록 하려면 어떻게 해야 합니까 exit
?