1.添加鼠标右键Cygwin菜单
Cygwin.reg
2.修改Cygwin.bat:
3,修改D:\Program\cygwin64\user\.bash_profile,文件末尾添加:
refere
http://blog.csdn.net/appletreesujie/article/details/8534397
http://www.cnblogs.com/sohighthesky/archive/2011/06/24/2089042.html
Cygwin.reg
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\cygwin]
@="Open &Cygwin"
[HKEY_CLASSES_ROOT\Directory\Background\shell\cygwin\command]
@="\"D:\\Program\\cygwin64\\Cygwin.bat\" \"%V\""
2.修改Cygwin.bat:
@echo off
set _T=%*
D:
chdir D:\Program\cygwin64\bin
bash --login -i
3,修改D:\Program\cygwin64\user\.bash_profile,文件末尾添加:
export _T=${_T//\\//} # replace backslash to fowardslash
if [[ $_T == "" ]]; then
export _T="D:/Program/cygwin64/home/sfit0082"
fi
_T=${_T//\"/}
cd "$_T"
refere
http://blog.csdn.net/appletreesujie/article/details/8534397
http://www.cnblogs.com/sohighthesky/archive/2011/06/24/2089042.html