mac在iTerm2中安装zsh

1.安装iTerm2

iterm2.com/

2.安装zsh(使用brew)
复制代码
brew install zsh
3.安装on-my-zsh(使用brew)

根据网上有很多种安装方式 可以参考这个issue(是针对超时的问题),但是都失败了。 github.com/ohmyzsh/ohm...

只有一种是成功了:使用wget安装,不确定是偶然还是什么原因。

使用官网推荐的wget安装

bash 复制代码
1.首先安装wget
brew install wget

2.执行下面命令
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

看到正常颜色有变化就可以了,剩下的安装插件设置样式就问题不大了,在配置.zshrc的时候,还是按照他的提示来填写(这里我的插件都是通过homebrew安装的,路径和网上看的不太一样):

bash 复制代码
autojump插件
[ -f /opt/homebrew/etc/profile.d/autojump.sh ] && . /opt/homebrew/etc/profile.d/autojump.sh

声明高亮插件zsh-syntax-highlighting
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

自动填充建议插件zsh-autosuggestions
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh

简单记录一下~

参考文章:

github官方:github.com/ohmyzsh/ohm...

zhuanlan.zhihu.com/p/589706383

zhuanlan.zhihu.com/p/550022490

相关推荐
小杨互联网19 小时前
Go 现代 CLI 工具离线镜像合集
开发语言·后端·golang·开源·go·命令行
xbzb4 天前
IP、掩码、网关、DNS 到底谁管什么?网络基础与七种设备一次讲清
网络·网关·mac·ip·dns·掩码
枣把儿5 天前
开源!全套公众号写作、封面、发布自动化工具包!
前端·命令行
死磕音视频9 天前
Codex CLI 入门:在终端里让 AI 读懂项目并完成一次小修改
openai·ai编程·命令行·codex
sbjdhjd10 天前
从 VLAN 到 MSTP 的交换网络入门
网络·计算机网络·mac·ip·stp·vlan·交换机
Web3&Basketball12 天前
Meta Muse 816B 实测:两台 Mac 本地跑通
macos·大模型·mac·本地部署·moe·显存优化·meta muse
databook13 天前
使用命令行做描述性统计的技巧
数据分析·命令行
Keith Guo15 天前
Understanding the Layers of Wireless Chips: RF, Baseband, and MAC in ESP32-S31
mac·rf·baseband
CocoaKier18 天前
如何安装旧版的MacOS系统?
macos·ios·mac
Hello_Pyhx20 天前
WinDirStat 2.9.3:从目录扫描到可复查的占用报表
windows·mac·垃圾清理