新Mac环境配置

brew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

如果网络问题则换为

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"


git

brew install git
ssh-keygen -t rsa

  • 添加pub key到自己的github账号

iTerm2

brew install --cask iterm2

或者

https://iterm2.com/

  • 配置peference -> pointer -> focus follow, peference -> profiles -> window -> transparency

oh-my-zsh

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

插件

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

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-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search

brew install autojump

在 ~/.zshrc 中配置
plugins=(原有插件 autojump zsh-autosuggestions zsh-syntax-highlighting zsh-history-substring-search)
[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh

nvm

brew install nvm

在~/.zshrc中配置
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh

你可能感兴趣的:(新Mac环境配置)