Skip to content

Instantly share code, notes, and snippets.

@Jian-Min-Huang
Last active May 23, 2023 03:44
Show Gist options
  • Save Jian-Min-Huang/8d0a7218f75c7255947aac62fa39b2c9 to your computer and use it in GitHub Desktop.
Save Jian-Min-Huang/8d0a7218f75c7255947aac62fa39b2c9 to your computer and use it in GitHub Desktop.
M1 Mac Reinstall

Install Part

install Homebrew

install xcode

  • App Store

install chrome and iterm2

  • brew install --cask google-chrome iterm2

install by brew

  • brew install git opencc mono tfenv android-platform-tools devutils openvpn

.ssh

  • mkdir .ssh
  • ssh-keygen -t rsa -b 4096
  • pbcopy < ~/.ssh/id_rsa.pub
  • vi ~/.ssh/config
# GitHub
Host github
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa
# GitLab
Host gitlab
HostName gitlab.com
User git
IdentityFile ~/.ssh/id_rsa
# office
Host office
HostName 192.168.2.2
User purefunc
IdentityFile ~/.ssh/id_rsa
ssh-copy-id -i ~/.ssh/id_rsa.pub office

setup font

  • brew tap homebrew/cask-fonts
  • brew install --cask font-fira-code
  • brew cleanup

setup vim

  • cd ~ && git clone [email protected]:Jian-Min-Huang/.vim.git
  • cd ~ && ln -s ~/.vim/.vimrc .
  • cd ~ && ln -s ~/.vim/.ideavimrc .
  • vi ~/.vimrc
:PlugInstall

install zsh

zmodule romkatv/powerlevel10k

zmodule ohmyzsh/ohmyzsh -f 'lib' -s 'lib/clipboard.zsh'
zmodule ohmyzsh/ohmyzsh -f 'plugins/ansible' -s 'plugins/ansible/ansible.plugin.zsh'
zmodule ohmyzsh/ohmyzsh -f 'plugins/copybuffer' -s 'plugins/copybuffer/copybuffer.plugin.zsh'
zmodule ohmyzsh/ohmyzsh -f 'plugins/common-aliases' -s 'plugins/common-aliases/common-aliases.plugin.zsh'
zmodule ohmyzsh/ohmyzsh -f 'plugins/copypath' -s 'plugins/copypath/copypath.plugin.zsh'
zmodule ohmyzsh/ohmyzsh -f 'plugins/docker-compose' -s 'plugins/docker-compose/docker-compose.plugin.zsh'
zmodule ohmyzsh/ohmyzsh -f 'plugins/emoji' -s 'plugins/emoji/emoji.plugin.zsh'
#zmodule ohmyzsh/ohmyzsh -f 'plugins/fd' -s 'plugins/fd/_fd'
zmodule ohmyzsh/ohmyzsh -f 'plugins/git' -s 'plugins/git/git.plugin.zsh'
zmodule ohmyzsh/ohmyzsh -f 'plugins/gitfast' -s 'plugins/gitfast/gitfast.plugin.zsh'
#zmodule ohmyzsh/ohmyzsh -f 'plugins/kubectl' -s 'plugins/kubectl/kubectl.plugin.zsh'
zmodule ohmyzsh/ohmyzsh -f 'plugins/sudo' -s 'plugins/sudo/sudo.plugin.zsh'
zmodule ohmyzsh/ohmyzsh -f 'plugins/terraform' -s 'plugins/terraform/terraform.plugin.zsh'
zmodule ohmyzsh/ohmyzsh -f 'plugins/vi-mode' -s 'plugins/vi-mode/vi-mode.plugin.zsh'
zmodule ohmyzsh/ohmyzsh -f 'plugins/z' -s 'plugins/z/z.plugin.zsh'
  • p10k configure

brew cask install

  • brew update
  • brew tap homebrew/cask-drivers
  • brew install --cask karabiner-elements slack dropbox sourcetree postman keycastr discord alfred obs brave-browser qmk-toolbox fig 1password 1password-cli mongodb-compass orbstack obsidian
  • brew cleanup

app store

direct

  • Jetbrains Toolbox
    • defaults write -g ApplePressAndHoldEnabled -bool false (press yes)
  • Parallels Desktop
  • figma

Setapp

  • ...

sdkman

  • https://sdkman.io/install
    • java
    • visualvm
  • vi ~/.zshrc
  • export GRAALVM_HOME=/Users/yfr/.sdkman/candidates/java/22.3.1.r17-grl
  • export PATH=${GRAALVM_HOME}/bin:$PATH

Python

  • pip3 install --upgrade pip
  • pip3 install ansible httpstat virtualenv
  • vi ~/.zshrc
  • export PATH="/Users/yfr/Library/Python/3.8/bin:$PATH"

NVM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment