Site Tools


This is an old revision of the document!


Setup new macOS

Download

  1. 添加中文双拼输入法
  2. 启用自然码
    # choose ziranma
    defaults write com.apple.inputmethod.CoreChineseEngineFramework shuangpinLayout 5
  3. Install brew (go ahead install app store apps while waiting)
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  4. install brew packages
    # essentials
     
    /opt/homebrew/bin/brew install fish iterm2
     
    echo /opt/homebrew/bin/fish | sudo tee -a /etc/shells
    chsh -s /opt/homebrew/bin/fish
     
    # dev must have
    brew install --cask hammerspoon the-unarchiver raycast slack postman uninstallpkg espanso
     
    brew install \
      aria2 aspell bat cmake colordiff coreutils \
      direnv dfc duf exa exiftool fd fish fastfetch gawk git git-delta \
      gnu-sed gnupg2 gopass htop imagemagick \
      iproute2mac ispell jpeg jq macchina ncdu openssl \
      pandoc pcre pcre2 pv python3 qpdf \
      rg rsync stylua sponge the_silver_searcher tealdeer tig \
      tmux tmuxp tree vim viu watch xplr xz neovim
     
    # coding things
    brew install prettier black virtualenv shellcheck shfmt isort \
      tree-sitter luajit lua-language-server eslint stylua typescript \
      typescript-language-server pyright
     
    # clang
    brew install clang-format llvm
     
    npm i -g lua-fmt neovim source-map-support cspell yarn
    python3 -m pip install --user --upgrade pynvim
     
    brew install -f gdu
    brew link --overwrite gdu  # if you have coreutils installed as well
     
    # docker ps
    brew install ctop lazydocker
     
    # db stuff
    brew install litecli mycli pgcli
     
    # cloud stuff
    brew install aws-cdk awscli azure-cli google-cloud-sdk
     
    # youtube-dl/yt-dlp
    brew install yt-dlp/taps/yt-dlp
     
    ## motd stuff
    brew install lolcat cowsay fortune
     
     
    # home computer must have
    brew install --cask bartender vlc iina v2rayu dropbox wechat itsycal visual-studio-code
     
    ## Universal Ctags (abbreviated as u-ctags) is a maintained implementation of ctags
    # brew install --HEAD universal-ctags/universal-ctags/universal-ctags
     
    git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.12.0
    asdf plugin add nodejs 'https://github.com/asdf-vm/asdf-nodejs.git'
    asdf global nodejs system
    arch -x86_64 asdf install nodejs 12.9.1
  5. ffmpeg
    # It's easier installing just one binary than install many brew dependencies
    curl -O 'https://evermeet.cx/ffmpeg/ffmpeg-6.0.zip'
    unzip ffmpeg-6.0.zip && chmod a+x ffmpeg && mv ffmpeg ~/.local/bin/
    curl -O 'https://evermeet.cx/pub/ffprobe/ffprobe-6.0.zip'
    unzip ffprobe-6.0.zip && chmod a+x ffprobe && mv ffprobe ~/.local/bin/
  6. prepare ~/.git-credentials
  7. bash ~/.dotfiles/install
  8. bash ~/.bin/macos-tweak.sh
  9. itsycal, use datetime format: # d MMM H:mm #
  10. Update /etc/sudoers:
    echo -e '\n%admin  ALL=(ALL) NOPASSWD: ALL\n' | sudo tee -a /etc/sudoers
  11. update user shell:
    sudo chsh -s /usr/local/bin/fish dcai
  12. Font: https://github.com/sunaku/tamzen-font#tamzenforpowerline-16, use ./ttf/TamzenForPowerline8x16r.ttf, choose size 16 in iterm2

Settings

  1. KeyboardModifier KeysCaps Lock to Control
  2. AccessibilityPointer ControlMouse & TrackpadTrackpad OptionsEnable draggingwith drag lock

Drivers

brew install fujifilm-x-webcam homebrew/cask-drivers/lg-onscreen-control

Must have macOS apps

app store

Tools

security

Nice to have macOS apps

dev

I'm trying

macos/setup-new-macos.1688390184.txt.gz · Last modified: by dcai