Portable cygwin

可以携带的cygwin

我们配置一个自己好用的cygwin很不容易,如何能让自己的cygwin拷贝到u盘上到处可用呢?
把这两个文件放到你的cygwin目录里吧

install.bat

bin\mount -m | bin\sed s/mount/"%CD%\\/bin\\/mount"/ > tmp\mount.log
bin\umount -c
bin\umount -A
bin\mount -bfu %CD%/ /
bin\mount -bfu %CD%\\bin /usr/bin
bin\mount -bfu %CD%\\lib /usr/lib

echo if you have folder cygwin\usr\i686-pc-cygwin\bin, you should change all files in this folder to system attrib with command "attrib +S"

pause




uninstall.bat

bin\umount -c
bin\umount -A
bin\bash cygwin\tmp\mount.log
bin\rm cygwin\tmp\mount.log




posted on 2011-01-22 22:27  不是程序  阅读(976)  评论(0)    收藏  举报

导航