讓cygwin不用windows 的cmd來執行命令,改用mintty
来源:互联网 发布:开淘宝店买什么电脑 编辑:程序博客网 时间:2024/06/05 03:40
TMD
這個windows cmd也太丑了吧,網上找了好久終於找到了辦法
Using mintty for Cygwin and bash (or your preferred shell)
I installed Cygwin with the default options, but did not like how the terminal window was based on the Windows CMD (command line). I did some reading and found that many people recommendmintty which is based off PuTTY v0.60, arguably a better terminal interface.However once you install mintty, you don't automatically get your shell. Running mintty from the Start menu or shortcut icons just dropped me into the /usr/bin directory with limited shell functionality (couldn't dols, etc. but could do cd). Weird. The way to get this right is to edit the C:\Cygwin\cygwin.bat file from Windows, remove or comment out the default shell call, for example:
@echo offC:chdir C:\cygwin\binREM bash --login -istart mintty.exe c:\cygwin\bin\bash --login -i
You also might want to look into other startup options such as sizing of the window; you have different options like:
start mintty.exe -s 120,60 c:\cygwin\bin\bash --login -i [opens a mintty window with 120 cols, 60 rows in size]
start mintty.exe -w max c:\cygwin\bin\bash --login -i [opens a mintty window Maximized on your desktop]
Check out some other tips on using mintty:
Tips - mintty - Tips on setting up mintty and related programs
mintty usage and arguments:
Usage: mintty [OPTION]... [ PROGRAM [ARG]... | - ]
Start a new terminal session running the specified program or the user's shell.
If a dash is given instead of a program, invoke the shell as a login shell.
Options:
-e, --exec Treat remaining arguments as the command to execute
-p, --position X,Y Open window at specified coordinates
-s, --size COLS,ROWS Set screen size in characters
-w, --window normal|min|max|full Set initial window state
-t, --title TITLE Set window title (default: the invoked command)
--class CLASS Set window class name (default: mintty)
-i, --icon FILE[,IX] Load window icon from file, optionally with index
-l, --log FILE Log output to file
-u, --utmp Create a utmp entry
-h, --hold never|always|error Keep window open after command terminates?
-c, --config FILE Load specified config file
-o, --option OPT=VAL Override config file option with given value
-H, --help Display help and exit
-V, --version Print version information and exit
轉載自http://googlebought.blogspot.com/2011/03/using-mintty-for-cygwin-and-bash-or.html
感謝原作者
- 讓cygwin不用windows 的cmd來執行命令,改用mintty
- cygwin windows正在查找mintty
- cygwin的mintty窗口中输出的中文是乱码
- cygwin的mintty窗口中输出的中文是乱码
- cygwin的mintty窗口中输出的中文是乱码
- windows的cmd命令
- windows的cmd命令
- [cygwin]mintty窗口中输出的中文是乱码
- [cygwin]mintty窗口中输出的中文是乱码
- 如何使用Mintty改进你的CYGWIN 控制台
- Windows的CMD基本命令
- Mintty(Cygwin)快速定位当前目录
- 有关windows系统安全的CMD命令大全!
- 有关windows系统安全的CMD命令大全!
- c#执行windows的cmd命令操作
- windows下的CMD 网络命令
- windows cmd 下的for命令帮助
- Windows下的cmd命令存档
- open和fopen的区别
- 我的csdn博客开通啦
- asp.net运行原理
- http://blog.csdn.net/bdmh/article/details/4447304
- 二叉排序树(BST)的判定(其实不容易)
- 讓cygwin不用windows 的cmd來執行命令,改用mintty
- 黑马程序员-基础-集合框架
- K近邻算法
- Android kernel下载
- 使用宿主 self host server 创建 api 服务( 如果你没有IIS ,还想用rest风格api)
- 计划‘三步走’通往持续交付
- Android开发_打开系统设置界面
- 算法导论-13-1-持久动态集合
- hdu1174-爆头