我的终端环境 - on my zsh + iTerm

原文发表于:https://www.rails365.net/articles/wo-de-zhong-duan-huan-jing-on-my-zsh-iterm

1. on my zsh

为什么说 zsh 是 shell 中的极品?

https://github.com/robbyrussell/oh-my-zsh

安装方法:https://github.com/robbyrussell/oh-my-zsh#basic-installation

配置文件:~/.zshrc

1.1 theme

theme 我使用的是默认的。

# ~/.zshrc
ZSH_THEME="robbyrussell

官方的其他 theme 可见于 https://github.com/robbyrussell/oh-my-zsh/wiki/themes

要改 theme 只要改配置就好。

1.2 plugin

我的:

# ~/.zshrc
plugins=(git zsh-autosuggestions git-prompt)

git-promptgit 是自带的,参见这里:https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins

zsh-autosuggestions 要自己安装,功能是命令提示(不是补全哦)

可以 git clone 安装:https://github.com/zsh-users/zsh-autosuggestions#oh-my-zsh

或者 用 brew 安装:https://github.com/zsh-users/zsh-autosuggestions#macos-via-homebrew

这个很牛,强烈推荐!

效果如下:

另外,https://github.com/bhilburn/powerlevel9k 这个感觉很不错的样,可以尝试一下。

2. iTerm

分屏必备。

https://www.iterm2.com/

直接官网点击下载安装。

还有其他功能?iterm2有什么酷功能?

完结。

发布了27 篇原创文章 · 获赞 0 · 访问量 1582

猜你喜欢

转载自blog.csdn.net/weixin_39637597/article/details/80066599