Skip to content
abnoumaruPublic

About

dotfiles

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

196 Commits

Folders and files

Repository files navigation

Initial Setup

  1. xcode-select --install

  2. curl -fsSL https://mise.run | sh

  3. Clone. The symlinks point into this path, so do not move it later.

    git clone https://github.com/abnoumaru/dotfiles ~/src/github.com/abnoumaru/dotfiles
    cd ~/src/github.com/abnoumaru/dotfiles
    mise trust
  4. Move aside any existing file the dry run reports as a conflict, then apply.

    mise bootstrap --dry-run
    mise bootstrap
  5. Set the git identity, which stays out of this repository, then gh auth login. --global would write into this repository, because without ~/.gitconfig git writes to ~/.config/git/config. The signing key is the public half of the SSH key in 1Password; turn on its SSH agent under Settings → Developer.

    git config --file ~/.gitconfig user.name "<name>"
    git config --file ~/.gitconfig user.email "<email>"
    git config --file ~/.gitconfig user.signingkey "<ssh public key>"
  6. Log out and back in, and grant Karabiner-Elements its permissions.

Adding something

What Where How
Command-line tool or runtime mise/global.toml mise use -g <tool>
Cask mise.toml [bootstrap.packages] mise bootstrap packages use brew-cask:<cask>
Formula mise.toml [bootstrap.packages] mise bootstrap packages use brew:<formula>
Config file mise.toml [dotfiles] Add an entry, then mise bootstrap --only dotfiles
macOS setting mise.toml [bootstrap.macos.defaults] Match the type from defaults read-type

Syncing

git pull && mise bootstrap   # apply changes from another Mac
mise bootstrap status        # show drift
mise self-update                 # mise
mise upgrade                     # tools
mise bootstrap packages upgrade  # formulae, and casks mise installed
brew upgrade --cask              # casks Homebrew installed

Deleting an entry does not uninstall or unlink anything:

Removed from Clean up with
mise/global.toml mise uninstall --all <tool>
[bootstrap.packages] mise bootstrap packages prune, or brew uninstall --cask <cask> if Homebrew installed it
[dotfiles] mise bootstrap dotfiles unapply
[bootstrap.macos.defaults] Reset it in System Settings

Moving from ~/go/src to ~/src

cd ~/go/src/github.com/abnoumaru/dotfiles
mise bootstrap dotfiles unapply
mv ~/go/src ~/src
cd ~/src/github.com/abnoumaru/dotfiles
git pull
mise trust
mise bootstrap
ghq root  # ~/src

About

dotfiles

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages