2011년 10월 7일 금요일

MingW + GIT + Emacs

Previous post mentioned about the installation of MingW.
And I add further setting to use Emacs;


To use git tool with MingW in windows XP I installed windows-ported version.

http://code.google.com/p/msysgit/




Then there are two the same shell commanders; Git Bash and Msys Bash contained in MingW package.
I would like to use Git under Msys Bash. However, in Msys Bash I can't access Git binary.
So, I need the below procedure.

1. Create .profile file in your home directory


After installation of Msys, set up your .profile something like this.
Create a .profile file in your home directory

Put the content needed into it. An example might be:

#!/bin/sh.exe
#
# Get the aliases and functions
#
if [ -f ${HOME}/.bashrc ]
then
  . ${HOME}/.bashrc
fi

export CVS_RSH="ssh"
export EDITOR="/usr/bin/vim"
export HISTSIZE="500"
export PATH="/c/emacs-23.3/bin:/c/Program\ Files/Git/bin:${HOME}/bin:${PATH}"

2. Create a .bashrc file in your home directory :

Put the content needed into it. An example might be:

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]
then
  . /etc/bashrc
fi

# User specific aliases and functions
#

Close and restart the MSYS Shell.

댓글 없음:

댓글 쓰기