C/C++教程

CygWin环境配置

本文主要是介绍CygWin环境配置,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

安装CygWin

安装cygwin的时候,顺便安装下面这些tool:
tree, vim, wget, curl, tmux, lynx,

安装apt-cyg

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

安装zsh

# 安装zsh
apt-cyg install zsh
# 配置oh-my-zsh
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
# 修改cygwin的启动参数
C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico /bin/zsh --login

安装

安装top工具

apt-cyg install procps

配置vim

编辑.vimrc

set guifont=Lucida_Console:h10
set expandtab
set tabstop=4
set shiftwidth=4
set nobackup
set nu!
set nocompatible

配置tmux

alias xn="tmux new -s"
alias xa="tmux attach -t"
alias xl="tmux ls"
这篇关于CygWin环境配置的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!