cygwin apt-cyg

来源:互联网 发布:vb win7 编辑:程序博客网 时间:2024/05/17 23:36
cygwin apt-cyg进入全屏
line

http://code.google.com/p/apt-cyg/


# 下载工具
svn --force export http://apt-cyg.googlecode.com/svn/trunk/ /bin/
  
# 更改权限
chmod +x /bin/apt-cyg


# 安装vim
apt-cyg install vim


https://github.com/xuyss/apt-cyg 

Quick start

apt-cyg is a simple script. To install:

lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyginstall apt-cyg /bin

Example use of apt-cyg:

apt-cyg install vim

===================================

在cygwin 下运行shell脚本,出现“$'\r': command not found”,这是win dos与Unix文本编辑方式不同造成的。可以使用cygwin工具dos2unix将script改为unix格式。

[plain] view plain copy
  1. $ dos2unix test.sh  
  2. dos2unix: converting file test.sh to UNIX format ...  
  3. $ sh test.sh  

如此便可解决。


0 0
原创粉丝点击