- 我的Cygwin用rxvt做CLI,下面是启动的脚本。
@echo off
C:
chdir C:\Users\Haijiang\tools\cygwin\bin
set EDITOR=vim
set VISUAL=vim
set CYGWIN=codepage:oem tty binmode title
set HOME=C:\Users\Haijiang\tools\cygwin\home
rem ***************************
rem Command to start rxvt than normal Cygwin console
rem
rem +vb turn off visual bell
rem -j use jump scrolling
rem -sr put srollbar on right
rem -sl set scrollback buffer size as N lines
rem -lsp set space between each row as N pixel
rem -b internal margin, unit is pixel
rem -km set multichat encoding
rem -e execute a command with its arguments
rem ****************************
rxvt -bg black -fg yellow -km GB +vb -b 5 -j -sr -sl 500 -lsp 2 -e /usr/bin/bash --login -i
- rxvt还需要一个脚本.Xdefaults,我用的内容在下面:
Rxvt*geometry: 120x40
Rxvt*background: #000020
Rxvt*foreground: #ffffbf
Rxvt*scrollBar: True
Rxvt*scrollBar_right: True
Rxvt*font: Fixedsys
Rxvt*mfont: Terminal
Rxvt*SaveLines: 2000
Rxvt*loginShell: True
! VIM-like colors
Rxvt*color0: #000000
Rxvt*color1: #FFFFFF
Rxvt*color2: #00A800
Rxvt*color3: #FFFF00
Rxvt*color4: #0000A8
Rxvt*color5: #A800A8
Rxvt*color6: #00A8A8
Rxvt*color7: #D8D8D8
Rxvt*color8: #000000
Rxvt*color9: #FFFFFF
Rxvt*color10: #00A800
Rxvt*color11: #FFFF00
Rxvt*color12: #0000A8
删除安装用的临时文件夹(在cygwin里输入命令)
$ rm -f /cygdrive/c/你的临时文件夹
停止cron service
$ cygrunsrv --stop cron
$ cygrunsrv --remove cron
停止并删除inetd服务
$ net stop inetd
$/usr/sbin/inetd --remove-as-service
删除安装文件夹,默认是c:\cygwin
删除桌面上的icon,和开始菜单里的启动文件夹
删除注册表里的相关项
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions
删除环境变量(PATH, CYGWIN)
环境变量PATH里的c:\cygwin\bin; 还有名叫CYGWIN的变量