Mac下 终端配置 iterm2+oh-my-zsh

本文介绍了在Mac上如何安装和配置iTerm2以及Oh-my-zsh,以提升终端使用体验。讨论了zsh的优越性和预装插件管理工具,同时对比了zsh与fish shell的特点。提供了多种安装Fish shell的方法,并给出了通过Homebrew安装的步骤,最后指导如何设置Fish为默认shell。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >



https://www.zhihu.com/question/21418449 zsh优点



1.Iterm2



2.Oh-my-zsh


zsh本身非常强大,回复1 https://www.zhihu.com/question/21418449

再加上此包管理    回复2   https://www.zhihu.com/question/21418449

除了oh my zsh外,zsh还有另一款plugin管理工具叫prezto:
GitHub - sorin-ionescu/prezto: The configuration framework for Zsh


看好多人说fish比zsh好,其实fish是拆箱即用,而zsh定制性强。所以fish给人第一印象就会很好,有很多炫酷的特性。
当我还在纠结 这个选择时,我曾在知乎提过一个问题:fish比zsh好用吗? - Linux

zsh支持递归

fish好比ubuntu、linux mint,zsh好比arch linux、gentoo。
如果用默认配置,那么zsh也没比bash强大到哪里去,而fish的默认配置以及很炫酷了。


作者:Ivan
链接:https://www.zhihu.com/question/21418449/answer/95753913
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

#################################################
fuck插件


Fish 不敌 zsh


http://jmolivas.com/improve-your-shell-using-fish-and-oh-my-fish


https://hackercodex.com/guide/install-fish-shell-mac-ubuntu/

Installing Fish on macOS

There are several ways to install Fish on macOS:

  • traditional .pkg installer
  • standalone Mac application
  • Homebrew
  • manual compilation

The first two options are available from the Fish web site and are straightforward enough to be considered self-explanatory.

That said, if you already use Homebrew (which I recommend) and have configured your environment as noted in the macOS Setup Guide, then you can install Fish as you would any other package:

brew install fish

If you would prefer to install the latest bleeding-edge version of Fish via Homebrew, run the following instead of the above command:

brew install --HEAD fish

Once installation has completed, add Fish to /etc/shells, which will require an administrative password:

echo "/usr/local/bin/fish" | sudo tee -a /etc/shells

To make Fish your default shell:

chsh -s /usr/local/bin/fish

Now that Fish is installed, you can proceed to the Basic Configuration section below.



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值