TotalCommander结合Bash使用
用快捷键快速打开当前目录的cmd
tc已经实现了,问题是打开bash
到当前目录有点麻烦…
直接bash 后面跟目录就会爆一堆错:
C:\Users\Administrator\AppData\Roaming\GHISLER>bash c:\
cygwin warning:
MS-DOS style path detected: c:\
Preferred POSIX equivalent is: /cygdrive/c
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
c:\: c:\: is a directory
于是写了一个批处理:
zylcyg.bat
@echo off
cd %1
bash
这样向zylcyg.bat
传入路径就可以转到指定的目录了
设置TC:
在TC根目录新建usercmd.ini
(如果没有)
添加如下
[em_zylbash]
cmd=E:\cygwin64\zylcyg.bat
param=%P
然后TC设置CTRL+B
的命令为em_zylbash
→_→CTRL+B
爽(^o^)/~…又能愉快的像CTRL+G
打开cmd一样CTRL+B
打开bash了(git再也不用担心cmd没颜色了)