macos 安装 Homebrew 与 iTerm2 及 oh-my-zsh 主题

macos 安装 Homebrew

允许第三方来源的安装
sudo spctl --master-disable

安装 git
https://sourceforge.net/projects/git-osx-installer/

使用国内镜像站安装 Homebrew
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

安装 iTerm2

brew install iterm2

安装 oh-my-zsh 主题

export https_proxy="http://proxy-ip:proxy-port"
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

vim ~/.zshrc
plugins=(git osx autojump zsh-autosuggestions zsh-syntax-highlighting)

自动提示插件

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

其他一些命令和资源记录

命令行查看macos版本
sw_vers

dash 版下载地址:
https://www.zhinin.com/dash-mac.html

参考

https://zhuanlan.zhihu.com/p/111014448
https://www.cnblogs.com/haojile/p/13193805.html
https://a1049145827.github.io/2019/05/15/Mac-%E7%8E%AF%E5%A2%83%E5%AE%89%E8%A3%85%E5%B9%B6%E9%85%8D%E7%BD%AE%E7%BB%88%E7%AB%AF%E7%A5%9E%E5%99%A8-oh-my-zsh/

你可能感兴趣的:(macos 安装 Homebrew 与 iTerm2 及 oh-my-zsh 主题)