Skip to content

Repository files navigation

Dotfiles

Personal dotfiles and setup scripts. Clone this repository to ~/.dotfiles before running the installer.

Install

Run the interactive installer:

cd ~/.dotfiles
./install.sh

Install specific modules:

./install.sh git zshrc vim nvim gpg

Install modules:

  • brew (macOS)
  • git
  • dircolors
  • zshrc
  • emacs
  • vim
  • nvim
  • tmux
  • gpg
  • mbsync
  • iterm2 (macOS)

Homebrew

Install Homebrew first if this is a fresh macOS machine:

/bin/bash -c "$(curl -fsSL https://github.com/ghraw/Homebrew/install/HEAD/install.sh)"

Check the base Brewfile plus every Brewfile.* profile except Brewfile.lock.json:

./install.sh brew

Install missing entries from the combined Brewfile profiles:

./install.sh brew --yes

Check or install only the base Brewfile:

./install.sh brew-base
./install.sh brew-base --yes

Preview cleanup against the combined Brewfile profiles, then apply it after reviewing the output:

./install.sh brew-cleanup
./install.sh brew-cleanup --yes

Preview and apply managed upgrades. The upgrade command also handles managed Go tools, npm packages, uv tools, Krew plugins, and VSCode/Cursor extensions declared in the Brewfile profiles.

./install.sh brew-upgrade
./install.sh brew-upgrade --yes

Install or remove the weekly macOS LaunchAgent for scheduled upgrades:

./install.sh brew-schedule
./install.sh brew-schedule --yes
./install.sh brew-unschedule
./install.sh brew-unschedule --yes

Verify

Run the smoke test through bash because the file is intentionally tracked without the executable bit:

bash tests/install-smoke.sh

Lint the shell scripts:

shellcheck install.sh tests/install-smoke.sh

Post-install

  1. Configure the powerlevel10k theme:
    p10k configure
        
  2. Install the DejaVu Sans font.
  3. Restore ~/.password-store and ~/notes/org as needed.
  4. Import autojump history into zoxide once:
    zoxide import --from autojump ~/Library/autojump/autojump.txt
        

About

My dotfiles

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages