Repository navigation
Add zsh defaults and Touch ID for sudo - #9
Merged
Merged
Conversation
zshrc: fzf lists files with fd, so it skips what .gitignore lists, and previews them with bat on Ctrl-T. EDITOR defaults to vim and man pages are shown through bat. Each is only a default: a value set before the repo's zshrc loads still wins. macos-defaults.sh turns on Touch ID for sudo in /etc/pam.d/sudo_local, which survives macOS updates. The new pam-reattach formula makes it work inside herdr and tmux too. It's safe to re-run, and once pam-reattach is installed a re-run adds it above pam_tid.so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The rest of the "better defaults" from the modernization plan. The gitconfig part went in with #7.
zshrc
fd, so it skips what.gitignorelists (Ctrl-T, Option-C), and Ctrl-T previews the file withbatEDITORdefaults tovimbat, so they're in colorEach is only a default: a value set in
~/.zshrcbefore the repo's zshrc loads still wins.Touch ID for sudo
macos-defaults.shaddspam_tid.soto/etc/pam.d/sudo_local, which survives macOS updates. The newpam-reattachformula, added above it, makes Touch ID work inside herdr and tmux too.pam-reattachis installed later, a re-run adds it abovepam_tid.so#auth ... pam_tid.solinesudo_localTesting
fdandbatcommands, with and without values set beforehandsudoin five situations: before and after installingpam-reattach, a re-run (no change), the template's commented-out line, and macOS older than 14pam-reattachexists in Homebrew. Touch ID itself still needs testing by handNot included
Caching
compinit: startup time needs measuring on a Mac first.🤖 Generated with Claude Code