1
wontoncc Sep 29, 2012 我的方法:
cygwin-here.bat: @echo off set _T=%cd% set _V=%1 E: chdir E:\cygwin\bin bash --login -i ~/.bash_profile: export _T=${_T//\\//} if [[ $_T == "" ]]; then export _T=~ fi cd "$_T" export _V=${_V//\\//} if [[ $_V != "" ]]; then vim "$_V" fi 思路是传递个环境变量,顺便实现了传递给 vim 方便编辑。 借助 Listary 在当前目录运行 bat 的手段。 |
2
wontoncc Sep 29, 2012
注意一下,缩进坏了…
|
3
windedge Sep 30, 2012
没记错的话,可以使用chere添加
|
4
haohaolee Sep 30, 2012
什么cmd.exe mintty console2都弱爆了,我用ConEmu这种事会随便跟别人说吗
|
5
jkeylu Sep 30, 2012 我是这样的
D:\cygwin\bin\mintty -i /Cygwin-Terminal.ico -e /bin/bash --login -i -c "cd '%1';exec bash" |