Skip to content
BenjaminDigeonPublic

About

My dotfiles

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

Dotfiles

Clone this repo in any folder, and then run the config scripts.

Configure MacOS

./configure_osx.sh

Configure bash profile, prompts, etc ...

Link dotfiles to ~

./configure_dotfiles.sh

Install osx deps (brew...)

./install_deps.sh

Install brew formulas

./install_brew_formulas.sh

Configure Git

configure_dotfiles.sh symlinks .gitconfig, which already sets the excludes file, editor, LFS filters and SSH commit signing. Two steps can't be version controlled:

1. Rebuild the allowed signers file. Derived from the SSH key, so it lives in ~/.ssh rather than in this repo. Without it commits still sign, but local verification reports "No principal matched", which looks like broken signing.

printf '%s namespaces="git" %s\n' \
  "$(git config --get user.email)" \
  "$(awk '{print $1, $2}' ~/.ssh/id_ed25519.pub)" > ~/.ssh/allowed_signers

2. Register the key as a signing key — an authentication key does not sign, so the same public key must be uploaded a second time with type signing.

gh auth refresh -s admin:ssh_signing_key   # default token scope is auth keys only
gh ssh-key add ~/.ssh/id_ed25519.pub --type signing

For GitLab, add the key at gitlab.com/-/user_settings/ssh_keys with usage type Signing (or Authentication & Signing).

Verify with git log --show-signature -1 — expect G from git log --format=%G?.

Change MacOS Machine Name

scutil --set ComputerName "MACHINE-NAME"
scutil --set LocalHostName "MACHINE-NAME"
scutil --set HostName "MACHINE-NAME.local"

Change MacOS Default Shell

Use the Homebrew bash, not /bin/bash. macOS ships bash 3.2.57, and bash-completion@2 needs >= 4.1, so Apple's bash silently gets no completions.

sudo sh -c "echo $(brew --prefix)/bin/bash >> /etc/shells"
chsh -s "$(brew --prefix)/bin/bash"

Setup Iterm

Just load the iTerm2Settings.json into Iterm2.

Setup VSCode

Just turn on the Settings Sync on VSCode with Github auth.

Setup Claude Code status line

configure_dotfiles.sh symlinks claude/statusline-command.sh to ~/.claude/statusline-command.sh. Then add this to ~/.claude/settings.json:

{
  "statusLine": {
    "type": "command",
    "command": "bash ~/.claude/statusline-command.sh"
  }
}

It shows: model + effort level, git branch (with dirty marker), session usage (with time until reset), weekly usage, and context window fill. Requires jq.

About

My dotfiles

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages