Skip to content

Instantly share code, notes, and snippets.

@hieunguyentrung
Last active March 14, 2024 08:31
Show Gist options
  • Save hieunguyentrung/3aa7a05b03be311f4fd4bd6b5803d8f3 to your computer and use it in GitHub Desktop.
Save hieunguyentrung/3aa7a05b03be311f4fd4bd6b5803d8f3 to your computer and use it in GitHub Desktop.

macOS setup

Install Xcode Command Line Tools

xcode-select --install

Install Homebrew

The Missing Package Manager for macOS (or Linux) — Homebrew

iTerm2

Downloads - iTerm2 - Mac OS Terminal Replacement

base16-iterm2/base16-gruvbox-dark-soft-256.itermcolors at master · martinlindhe/base16-iterm2 · GitHub

Oh My ZSH

Oh My ZSH

Node

NVM

nvm install 16

Yarn

npm install --global yarn

Git config

git config --global color.ui true
git config --global user.name 'Hieu Nguyen'
git config --global user.email '10509903+hieunguyentrung@users.noreply.github.com'
ssh-keygen -t ed25519 -C 'hieunguyentrung'

cat ~/.ssh/id_rsa.pub
ssh -T git@github.com

Setup VIM

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

dot-files/.vimrc at master · hieunguyentrung/dot-files · GitHub

vim +PluginInstall +qall

SSH Config

~/.ssh/config

Host *
  AddKeysToAgent yes
  UseKeychain yes
  ServerAliveInterval 120
  TCPKeepAlive no

Ruby

ASDF

brew install libyaml
asdf install ruby 3.2.2

Rails

echo "gem: --no-document" >> ~/.gemrc
gem install rails
rbenv rehash

Apps

brew services start postgresql

JetBrains font

JetBrains Mono: A free and open source typeface for developers | JetBrains: Developer Tools for Professionals and Teams

Quick show Dock

defaults write com.apple.Dock autohide-delay -float 0; killall Dock
@hieu-v
Copy link

hieu-v commented Dec 11, 2023

Lock Dock

defaults write com.apple.dock size-immutable -bool true; killall Dock

Unlock Dock

defaults write com.apple.dock size-immutable -bool false; killall Dock

@hieunguyentrung
Copy link
Author

defaults write com.apple.Dock autohide-delay -float 0; killall Dock

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