mac电脑安装item2、oh-my-zsh

1、下载item2

Downloads - iTerm2 - macOS Terminal ReplacementiTerm2 is a replacement for Terminal and the successor to iTermhttps://iterm2.com/downloads.html

2、安装homebrew

默认安装脚本

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

如果你等待一段时间之后遇到下面提示,就说明无法访问官方脚本地址:

curl: (7) Failed to connect to raw.githubusercontent.com port 443: Operation timed out

这个时候你执行下面的命令就可以了:(需要等待一会,别着急)

/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"

切记在终端执行环境变量设置!,如已执行过请忽略。

- 执行下面命令将 Homebrew 到 PATH 中:

// 先执行
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/jhh/.zprofile
再执行   
eval "$(/opt/homebrew/bin/brew shellenv)"
// 最后:
brew -v

3、验证brew

brew -v

4、安装oh-my-zsh

// via curl  
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
// via wget
sh -c "$(wget -O- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
// 或者git
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh


2022-12-10更新国内安装方式:
// via curl  
sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"

// via wget
sh -c "$(wget https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh -O -)"

新方式:

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值