mac安装配置zsh
生活随笔
收集整理的這篇文章主要介紹了
mac安装配置zsh
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
mac安裝配置zsh
比mac自帶的shell好用太多
一、安裝homebrew
參考:https://brew.sh/index_zh-cn
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"二、安裝zsh
參考:https://github.com/ohmyzsh/ohmyzsh/wiki/Installing-ZSH
brew install zsh三、配置zsh終端
參考https://www.zhihu.com/question/21418449
curl -sSL https://raw.githubusercontent.com/skywind3000/vim/master/etc/zshrc.zsh >> .zshrc三、安裝 Zsh 擴(kuò)展集合 oh-my-zsh
參考: jianshu.com/p/02276c671ee8
參考:https://github.com/ohmyzsh/ohmyzsh
然后安裝相應(yīng)的插件
參考:https://github.com/ohmyzsh/ohmyzsh
參考:https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins
編輯~/.zshrc,找到plugin,加入想要添加的插件
plugins=(git docker docker-compose)然后source重新加載一下
source .zshrc四、遇到的問題
Last login: Sun Sep 6 10:52:48 on ttys001 zsh compinit: insecure directories, run compaudit for list. Ignore insecure directories and continue [y] or abort compinit [n]?
解決辦法:
參考:https://github.com/zsh-users/zsh-completions/issues/433
$ cd /usr/local/share/ $ sudo chmod -R 755 zsh $ sudo chown -R root:staff zsh總結(jié)
以上是生活随笔為你收集整理的mac安装配置zsh的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 环信webIM即时通讯学习笔记
- 下一篇: 看雪论坛 『Android安全』版优秀和