Skip to content

sunpech/dotfiles

Repository files navigation

Sunpech's dotfiles

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.

Requirements

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

Installation

Clone repo (with submodules)

There are currently no submodules.

git clone --recurse-submodules git@github.com:sunpech/dotfiles.git

mv dotfiles ~/.dotfiles

cd ~/.dotfiles

Run stow

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.

Applications

Terminals

Homebrew cask available for these.

brew install --cask wezterm ghostty

Z shell (zsh) Customizations

Installed via homebrew.

brew install zsh-autosuggestions zsh-syntax-highlighting powerlevel10k starship

Applicaiton paths used in dotfiles

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.

Other Homebrew Installs

These are some other important homebrew packages.

Neovim related

brew install neovim fd rg ast-grep lazygit

Various packages

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

Fonts

I'm a fan of JetBrains Mono font.

brew install --cask font-meslo-lg-nerd-font font-jetbrains-mono-nerd-font font-fira-code

Recommended Applications

I also have a more up to date repo, Best Software List.

Misc

You may want to:

  1. Change your computer’s name or local hostname on Mac

  2. Disable Apple Photos from auto-launching when plugging in sdcard . Run command below.

defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool YES
  1. 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

About

My dotfiles to set up new macOS installs.

Topics

Resources

Stars

Watchers

Forks

Contributors