Mac 上的终端,我体验下来,iTerm2 应该是最趁手的,配合 homebrew 和 zsh
插件,整个体验下来就很香,接下来就来看看如何来配置吧。
安装 Homebrew
官网安装
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
添加 homebrew 到环境变量:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/[username]/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)"
|
国内快速安装
Homebrew
中文网
/bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"
|
安装 iTerm2
官网安装
iTerm2官网
brew 安装
brew install --cask iterm2
|
安装 On My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
插件推荐
plugins=( git autojump zsh-syntax-highlighting zsh-autosuggestions )
|
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
|
autojump