以前一直在windows下面都是使用的 mintty 或者是 rxvt 做为winsows下面的console环境,
但mintty和git环境的配合实在是太差了,而且好像没办法使用zsh,受够了不能自动完成的苦。
所以今天在网上找了一圈,看能不能用console实现这个目标:
下载console
1
2
http://sourceforge.net/projects/console/files/console-devel/
`
`下载下来的应该是一个压缩包,直接解压就可以使用。 tab添加办法: *console setting -> Tabs -> shell * * * * # mingw 的设置
`cmd.exe /c "bash.exe --login -i " `
C:\MinGW\msys\1.0\bin\bash.exe –login -i -c “cd ~;exec /bin/bash” # ——————–中文乱码解决方案——————– ## ls显示中文不正常解决方法:
`/etc/profile `
添加
`alias ls='ls --show-control-chars -F --color=tty' `
输入中文不正常解决方法:
`/etc/inputrc.default ~/.inputrc `
更改
`set meta-flag on set input-meta on set output-meta on set convert-meta off --------------------------------------------------------- 重新启动msys后中文乱码问题解决 `
-
-
-
cygwin的设置
-
-
`D:\Program\cygwin\bin\zsh.exe --login -i `
安装 zsh的教程见ubuntu基本设置那篇 以上设置已经能很好的运行了,但我还想再进一步。跟linux下一样,能快捷键调出命令行窗口。 我使用的是ahk脚本 安装ahk软件后,在启动项里添加 AutoRun.ahk,或者其它名字 在里面添加 ; ctrl + alt + t = terminal ^!t:: run, D:\Program\Console2\Console.exe`
1
`return
Comments powered by Disqus.