Skip to content

Instantly share code, notes, and snippets.

@tuananhlai
Last active April 15, 2026 13:02
Show Gist options
  • Select an option

  • Save tuananhlai/be5b96f79b5d8b1ecce4de8ab53603af to your computer and use it in GitHub Desktop.

Select an option

Save tuananhlai/be5b96f79b5d8b1ecce4de8ab53603af to your computer and use it in GitHub Desktop.
#!/bin/bash
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo >> ~/.zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv zsh)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv zsh)"
# Common applications for all setups
brew install --formula gh asdf neovim
brew install --cask visual-studio-code raycast mac-mouse-fix zen shottr ghostty orbstack
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install LazyVim (download preconfigured NeoVim settings)
git clone https://github.com/LazyVim/starter ~/.config/nvim
# System preferences
echo "Configuring system preferences..."
# Disable MacOS press and hold behavior for better Vim navigation.
defaults write -g ApplePressAndHoldEnabled -bool false
# Disable CapLock delay
# https://www.reddit.com/r/MacOS/comments/1dkklgs/how_to_remove_caps_lock_key_delay/
hidutil property --set '{"CapsLockDelayOverride":0}'
# Swap function key.
# Auto-hide the dock "Automatically show and hide the Dock"
# Disabled "Tiled windows have margins"
# Remove all global actions hotkey from TickTick.
# Disable "Add period with double-space"
# Disable "Displays > Advanced > Push through the edge of a display..." to prevent cursor freezing at the edge of the screen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment