My dotfiles for macOS. This will help you (me) get started setting up a fresh new Mac.
I use GNU stow to manage symlinks for configurations.
You need to run z shell (zsh), which is default since macOS Catalina, in 2019.
You'll need to have homebrew installed.
Then you'll need git and stow to install this dotfiles repository.
brew install git stow
There are currently no submodules.
git clone --recurse-submodules git@github.com:sunpech/dotfiles.git
mv dotfiles ~/.dotfiles
cd ~/.dotfiles
Use stow to create symlinks for config files.
I disagree with running stow . at the top of the project directory to symlink everything. I think it's better to organize by directory where it's more modular, which is the approach of this repo.
stow zsh powerlevel10k starship eza nvim vim git wezterm ghostty
After running stow above, you should be setup with your dotfiles.
Homebrew cask available for these.
brew install --cask wezterm ghostty
Installed via homebrew.
- powerlevel10k
- Starship
- zsh-autosuggestions and zsh-syntax-highlighting
brew install zsh-autosuggestions zsh-syntax-highlighting powerlevel10k starship
You'll need to have these installed.
- eza - A modern, maintained replacement for ls.
- rbenv - For managing rubies.
- homebrew - Mac package manager.
- zoxide - A smarter cd command.
These are some other important homebrew packages.
brew install neovim fd rg ast-grep lazygit
brew install node nvm openssl rbenv ruby-build wget vim tig rename ssh-copy-id rename toilet tree glances go hugo fastfetch yt-dlp fzf zoxide eza gitmoji cmatrix ffmpeg exiftool
I'm a fan of JetBrains Mono font.
brew install --cask font-meslo-lg-nerd-font font-jetbrains-mono-nerd-font font-fira-code
- Git Fork - A fast and friendly git client.
- Github Desktop - Github Git GUI.
- Google Antigravity - Google's AI IDE.
- Microsoft Visual Studio Code - Microsoft's AI IDE.
- pgAdmin - Popular PostgreSQL admin tool.
- Postgres.app - Postgres for Mac.
- Sourcetree - Git GUI from Atlassian.
- Sublime Text and Sublime Merge - Text Editor and Git GUI.
I also have a more up to date repo, Best Software List.
You may want to:
-
Disable Apple Photos from auto-launching when plugging in sdcard . Run command below.
defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool YES
- Prevent macOS from Creating .DS_Store on Network and USB/external Drives
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool TRUE