Skip to content

Instantly share code, notes, and snippets.

@crossgate10
Last active May 3, 2023 03:19
Show Gist options
  • Save crossgate10/c2be0fe96070a97812bfaf17bdf2e4e1 to your computer and use it in GitHub Desktop.
Save crossgate10/c2be0fe96070a97812bfaf17bdf2e4e1 to your computer and use it in GitHub Desktop.
Setup a new Mac
.PHONY: setup
setup:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
#### 重灌常用
brew install docker docker-compose neovim yj yq git git-gui go fzf bat ripgrep autojump the_silver_searcher clang-format cmake fish htop node wget jq python
#### 重灌常用-cask
brew install --cask lens microsoft-edge iterm2 postman bloomrpc tor-browser sublime-text visual-studio-code telegram another-redis-desktop-manager appcleaner drawio jetbrains-toolbox notion spectacle
#### neovim config Ref. https://github.com/rafi/vim-config
make setup-nvim-prerequisites
make install-nvim
.PHONY: setup-nvim-prerequisites
setup-nvim-prerequisites:
#### Prerequisites
make install_yaml2json
pip install PyYAML
.PHONY: install_yaml2json
install_yaml2json:
curl -L https://github.com/bronze1man/yaml2json/releases/download/v1.3/yaml2json_darwin_amd64 -o /usr/local/bin/yaml2json
chmod +x /usr/local/bin/yaml2json
.PHONY: install-nvim
install-nvim:
git clone [email protected]:rafi/vim-config.git ~/.config/nvim
cd ~/.config/nvim
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment