Mac开发环境配置


brew

http://brew.sh/

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install redis postgresql neovim mongodb-community yarn

mongodb

https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/

brew tap mongodb/brew
brew install mongodb-community

brew services

brew services start redis
brew services list
brew services stop redis

brew cask

https://github.com/Homebrew/homebrew-cask/blob/master/USAGE.md

brew cask install balenaetcher google-chrome keka thunder wechat docker iterm2 qq visual-studio-code youdaodict youdaonote baiduinput karabiner-elements

ohmyzsh

https://ohmyz.sh/

$ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

plugin

https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins

theme

https://github.com/ohmyzsh/ohmyzsh/wiki/Themes

rvm

https://rvm.io/

https://ruby-china.org/wiki/ruby-mirror

  1. 安装 rvm
curl -sSL https://get.rvm.io | bash -s stable
  1. 配置 rvm 安装 mirror
echo "ruby_url=https://cache.ruby-china.com/pub/ruby" > ~/.rvm/user/db
source /home/deployer/.rvm/scripts/rvm
  1. 安装 ruby
rvm install 2.7.0 --disable-binary

nvm

https://github.com/nvm-sh/nvm

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash