This is a collection of dotfiles for bootstrapping a macos. I use a chezmoi to manage them.
- SHELL: fish with starship, and fisher plugin manager
- IDE: Neovim with Neovide, and Visual Studio Code
- Font: JetBrains Mono Nerd Font
- Terminal: ghostty
- Password manager: 1password and 1password_cli
- Browser: Zen and Google Chrome
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install fish and set fish as default shell:
brew install fish
echo "/opt/homebrew/bin/fish" | sudo tee -a /etc/shells
chsh -s /opt/homebrew/bin/fish
Install chezmoi with Homebrew:
brew install chezmoi
Initialize chezmoi with dotfiles from this repository:
chezmoi init https://github.com/raywhite/dotfiles_macos.git
Sync dotfiles with chezmoi:
chezmoi apply -v
Install all apps from the Brewfile
, located in private_dot_config/brewflie/Brewfile
.
brew bundle --file="~/.local/share/chezmoi/private_dot_config/brewflie/Brewfile"
Install the fisher plugin manager:
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
Install fzf plugin
fisher install patrickf1/fzf.fish
Install eza plugin
fisher install plttn/fish-eza
Parse manual pages installed on the system and attempt to create completion files in the fish configuration directory with the following command:
fish_update_completions
Check what changes will be applied:
chezmoi diff
Apply changes:
chezmoi apply -v
chezmoi edit $FILE
chezmoi merge $FILE
chezmoi update -v