cygwin下安装c语言开发环境

1、到官网cygwin.com下载安装程序。

2、添加清华的cygwin镜像:https://mirrors.tuna.tsinghua.edu.cn/cygwin/

3、在安装:vim,git,gcc,g++,make

4、到kernel.org下载文档:https://mirrors.edge.kernel.org/pub/linux/docs/man-pages/Archive/

5、修改默认HOME目录,在我的电脑->环境变量中添加“HOME"变量,并把值设为修改后的目录。

6、完毕

附录:How to change cygwin hostname

Cygwin reads the host name from Windows. On Windows 7 (instructions will be similar for other versions of Windows) you can change this by doing the following:

  1. Open Control Panel
  2. Click System and Security
  3. Click System
  4. Under "Computer name, domain, and workgroup settings", click Change Settings
  5. Next to "To rename this computer…" click "Change…"
  6. Enter your desired host name in the "Computer name" box then click OK twice.

To simply change the Bash prompt, however, you don't need to jump through those hoops. The Bash prompt is controlled by the PS1 environment variable, and there're extensive instructions in the Bash man pages under "Prompting".

For example, to temporarily set your Bash prompt to Howdy>, you can use the following command:

PS1='Howdy> '

While to set it whenever you restart the Bash shell, use the following to add it to your .bashrc file (which is run whenever Bash is started).

echo 'PS1="Howdy> "' >>~/.bashrc

转载于:https://www.cnblogs.com/litifeng/p/9316552.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值