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 updatenvm
安装
# https://github.com/nvm-sh/nvm#install--update-script
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash常用命令
# 查看列表
nvm lsiTerm2
oh-my-zsh
Oh My Zsh 是一个开源的、社区驱动的框架,用于管理您的 zsh 配置。
安装
# https://github.com/ohmyzsh/ohmyzsh#basic-installation
sh -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
# .zshrc
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
# .zshrc
plugins=(
zsh-syntax-highlighting
)autojump
brew install autojump
# .zshrc
plugins=(
autojump
)copypath
# .zshrc
plugins=(
copypath
)copyfile
# .zshrc
plugins=(
copyfile
)web-search
# .zshrc
plugins=(
web-search
)