先解决homebrew下载过慢问题
- 找到客户端的代理接口, 我用的是"未吐瑞X"(这都能违规名,掘金还有救吗?),可以直接通过"copy http proxy shell export line"复制到下面内容:
export http_proxy="http://127.0.0.1:XXXX"
export HTTP_PROXY="http://127.0.0.1:XXXX"
export https_proxy="http://127.0.0.1:XXXX"
export HTTPS_PROXY="http://127.0.0.1:XXXX"
然后open ~/.zshrc打开后在最后一行粘贴上面的内容,保存后执行source ~/.zshrc,这些操作都是在zsh中操作的,要先通过命令zsh进入zsh中,参考知乎Oriharas的回答.
我的homebrew下载东西下载不了,无论带不代理,切换源也是失败的,这是我目前找到的最好的方式
安装hyper并默认切换为zsh
brew cask install hyper
- 打开
.hyper.js偏好设置文件。找到 shell 那一行,把它修改为shell: 'zsh',然后source ~/.zshrc保存.
安装东西
brew install zsh zsh-completions
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
brew install autojump;git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions;git clone git://github.com/zsh-users/zsh-syntax-highlighting $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
然后open ~/.zshrc里面找到plugins,插入如下代码
plugins=(
autojump
zsh-autosuggestions
zsh-syntax-highlighting
)
执行source ~/.zshrc,
参考掘金颜酱
然后就完成了.
结尾
hyper还是很酷的,比iTerms2好看多了,所谓 颜值即正义
