一. 首先安装 git
https://git-scm.com/download/win
下载好后,一路next,直到完成。
二、把 git bash找出来,并放在桌面,方便运行
三、测试shell
刚开始git bash默认在c盘
想要换 f 盘:cd f:
安装的Git bash默认使用vim
编辑第一shell脚本,你好世界
在敲代码的时候,支持tab键盘,补全代码的。
#!/bin/bash
echo "hello world!"
并直接在其目录下,./hello.sh 进行运行脚本
完美!