Mac 开发环境配置
brew
MacOS(或 Linux)的缺失包管理器。
安装
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
常用命令
# 安装brew install git
# 卸载brew uninstall git
# 搜索brew search git
# 更新brew upgrade git
# 更新所有brew update
nvm
安装
# https://github.com/nvm-sh/nvm#install--update-scriptcurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
常用命令
# 查看列表nvm ls
iTerm2
oh-my-zsh
Oh My Zsh 是一个开源的、社区驱动的框架,用于管理您的 zsh 配置。
安装
# https://github.com/ohmyzsh/ohmyzsh#basic-installationsh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
请注意,任何以前的 .zshrc
都将重命名为 .zshrc.pre-oh-my-zsh
。安装后,您可以将要保留的配置移动到新的 .zshrc
中。
常用的 plugin
zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-myzsh/custom}/plugins/zsh-autosuggestions
plugins=( zsh-autosuggestions)
# .zshrc 修改颜色ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#ff00ff,bg=cyan,bold,underline"
zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.ohmy-zsh/custom}/plugins/zsh-syntax-highlighting
plugins=( zsh-syntax-highlighting)
autojump
brew install autojump
plugins=( autojump)
copypath
plugins=( copypath)
copyfile
plugins=( copyfile)
web-search
plugins=( web-search)