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

相关推荐
悄然林静9 天前
Mac终端执行`brew doctor`报`openssl@1.1`警告
mac·xcode·apple
M-finder12 天前
Mac菜单栏综合工具FancyTool更新啦
mac·swift
Yisitelz14 天前
签名、杂凑、MAC、HMAC
mac·密码·数据完整性·密评
2501_9275393014 天前
PDF Reader 编辑阅读(Mac)
pdf·mac·pdf reader
夏小花花15 天前
Mac m系列芯片向日葵打不开 解决方案
macos·mac
小溪彼岸19 天前
一款好用的桌面端软件uTools
mac
猫头虎20 天前
IDE mac M芯片安装报错:如何解决“InsCode.app 已损坏”,无法打开
ide·vscode·macos·inscode·编辑器·idea·mac
2501_9280946521 天前
PDF Reader 编辑阅读工具(Mac中文)
macos·pdf·mac
vortex522 天前
Windows 电源管理和 Shutdown 命令详解
windows·stm32·命令行
赵榕22 天前
HyperDock不显示预览图的解决方法
macos·mac·hyperdock