thhuang / mac-setup

This is how I set up my MacBook!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mac Setup

System Preferences

  • Dock & Menu Bar
    • Dock Size: smaller
    • [Check] Automatically hide and show the Dock
    • [Check] Automatically hide and show the menu bar on desktop
    • [Check] Automatically hide and show the menu bar on full screen
  • Keyboard
    • Keyboard
      • Key Repeat: fast
      • Delay Until Repeat: short
    • Input Sources
      • Add
        • ABC
        • Zhuyin - Traditional
      • Settings
        • [Uncheck] Use the 中/英 key to switch to and from ABC
    • Shortcuts > Input Sources
      • [Uncheck] Select the previous import source ^Space
  • Trackpad > Point & Click
    • [Check] Tap to click

Applications

Fonts

  • Fira Code, Hack Nerd Font, Meslo Nerd Font, and Lato
    brew tap homebrew/cask-fonts
    brew install --cask font-fira-code font-hack-nerd-font font-meslo-lg-nerd-font font-lato

Terminal Settings

  • iTerm2

    brew install --cask iterm2
  • Preferences > Profiles > Text > Font

    • MesloLGS Nerd Font Mono
    • Regular
    • 14
    • 100
    • 100
  • Preferences > Profiles > Colors > Color Presets

    • Download color schemes
      • Tokyonight - Night
      • Neutron
        • Preferences > Profiles > Colors > Color Presets > ANSI Colors > Black > Normal: 30% Gray
        • Preferences > Profiles > Colors > Color Presets > ANSI Colors > Black > Bright: 40% Gray
  • Preferences > Profiles > Session

    • [Check] Status bar enabled
    • Configure Status Bar
      • Active Components
        • CPU Utilization
        • Memory Utilization
        • Network Throughput
      • Auto-Rainbow: Light Colors
  • Preferences > Profiles > Keys

    • Left Option key: Esc+
  • Z shell (if zsh is not the default shell)

    chsh -s /bin/zsh
  • Zim

    curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh
  • Powerlevel10k

    echo '\n# -------\n# thhuang\n# -------\nzmodule romkatv/powerlevel10k --use degit\n' >> ~/.zimrc
    zimfw install
    
    # configuration wizard
    p10k configure
    
    # configuration file
    vi ~/.p10k.zsh
  • Pass the bad match onto the command

    echo '\nsetopt no_nomatch # use the command as is when pattern matching fails' >> ~/.zshrc

Command Line Tools

  • cmake
    brew install cmake
  • wget
    brew install wget
  • htop
    brew install htop
  • ncdu
    brew install ncdu
  • tree
    brew install tree
  • ripgrep
    brew install ripgrep
  • git
  • lazygit
    brew install lazygit
  • xcode command line tools
    xcode-select --install
  • neovim
    brew install neovim

Programming Language Runtimes

  • Go
    • Download the binary release and untar it
    • Move the go folder into ~/Development/libraries/
      mv ~/Downloads/go ~/Development/libraries/.
  • Lua
    • Formatter: stylua
      brew install stylua
  • NVM, Node.js, NPM, & Yarn
    echo 'zmodule lukechilds/zsh-nvm\n' >> ~/.zimrc
    zimfw install
    nvm install node
    nvm use node
    npm install -g npm
    npm install -g yarn
    npm install -g prettier
  • Rust
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

neovim

Soft link .config/nvim to ~/.config/nvim

  • Language Server Protocol
    • C++: clangd
      brew install clang-format
    • Go: gopls
    • JSON: jsonls
    • Lua: sumneko_lua
    • Python: pyright
    • Rust: rust_analyzer

About

This is how I set up my MacBook!


Languages

Language:Lua 100.0%