Skip to content

Commit f5532a7

Browse files
authored
4/23/2026 (#60)
1 parent 369ad96 commit f5532a7

5 files changed

Lines changed: 46 additions & 31 deletions

File tree

.claude/CLAUDE.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,35 @@
66

77
Always execute tasks in this order:
88

9-
- Run the project's code formatter on the changed file(s).
10-
- Run the project's linter on the changed file(s).
11-
- Run automated tests related to the changed file(s).
9+
- Run the project's code formatter on the changed file(s)
10+
- Run the project's linter on the changed file(s)
11+
- Run automated tests related to the changed file(s)
1212

1313
## Automated testing
1414

15-
- If a test file is not disabled, and it has non-disabled test cases, then ensure tests were actually run when evaluating the output.
15+
- If a test file is not disabled, and it has non-disabled test cases, then ensure tests were actually run when evaluating the output
1616

1717
## Bash/shell commands
1818

19-
- Execute one command per Bash tool call instead of chaining with `&&` or `||`. Avoid compound Bash commands whenever possible.
19+
- Execute one command per Bash tool call instead of chaining with `&&` or `||`. Avoid compound Bash commands whenever possible
2020

2121
## Git
2222

23-
- Do not ever commit to the default, `main`, or `master` Git branches. Always ask if a new branch should be created instead.
24-
- Always prefix git branch names with "emmercm/".
23+
- Retry all git operations that fail because the lock file exists; do not ever delete the lock file
24+
- Do not ever commit to the default, `main`, or `master` Git branches. Always ask if a new branch should be created instead
25+
- Always prefix git branch names with "emmercm/"
26+
- Always update/pull the base branch before creating a new branch; do not create a branch off of a stale default branch
27+
28+
## Pull requests
29+
30+
- Always respect any existing PULL_REQUEST_TEMPLATE and follow its instructions
31+
- Do not include lists of filename changes, those lists are obvious from the diff
2532

2633
## Superpowers
2734

28-
- Do not ever commit specs, plans, or any other documents produced by the "superpowers" plugin.
35+
- Do not ever commit specs, plans, or any other documents produced by the "superpowers" plugin
36+
- Always create Git branches off of the default branch, never create them off of the current branch
2937

3038
## Writing style
3139

32-
- Use American English spelling in comments and documentation
40+
- Use American English spelling in names, comments, and documentation

.everythingrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,10 @@ __bashrc_ides
118118
##### Everything Else #####
119119

120120
shell_basename="$(basename "${SHELL}")"
121-
while read -r file; do
121+
for file in ~/.dotpack/.*; do
122+
[[ -f "${file}" ]] || continue
122123
if [[ "${file}" == *".sh" || "${file}" == *".${shell_basename}" ]]; then
123124
# shellcheck disable=SC1090
124125
source "${file}"
125126
fi
126-
done <<< "$(find ~/.dotpack -maxdepth 1 -follow -type f -name ".*" | sort --version-sort)"
127+
done

dotpack/.20_python.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
##### https://www.python.org/
22

33
__python_setup() {
4-
while read -r DIR; do
5-
[[ -z "${DIR}" ]] && continue
4+
for DIR in ~/Library/Python/*/bin; do
5+
[[ -d "${DIR}" ]] || continue
66
export PATH="${DIR}:${PATH}"
7-
done <<< "$(find ~/Library/Python/* -maxdepth 1 -type d -name bin 2> /dev/null)"
7+
done
88
}
99
__python_setup
1010

dotpack/.20_ruby.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
##### https://www.ruby-lang.org/en/
22

33
__ruby_chruby() {
4+
# Auto-load the latest Ruby version
5+
if command -v chruby &> /dev/null && [[ -d ~/.rubies ]]; then
6+
chruby "$(ls -1 ~/.rubies/ | sort | tail -1)"
7+
fi
8+
49
# Lazy load chruby
510
if [[ -d "${HOMEBREW_PREFIX}/opt/chruby/share/chruby" ]]; then
611
chruby() {
@@ -10,10 +15,5 @@ __ruby_chruby() {
1015
chruby "$@"
1116
}
1217
fi
13-
14-
# Auto-load the latest Ruby version
15-
if command -v chruby &> /dev/null && [[ -d ~/.rubies ]]; then
16-
chruby "$(ls -1 ~/.rubies/ | sort | tail -1)"
17-
fi
1818
}
1919
__ruby_chruby

settings.sh

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ if [[ "${OSTYPE:-}" == "darwin"* ]]; then
4848
# sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticCheckEnabled -bool YES
4949

5050
# ***** Settings > General > Date & Time *****
51+
# Set time and date automatically: on
52+
sudo systemsetup -setusingnetworktime off
53+
sudo systemsetup -setusingnetworktime on
54+
# Source
55+
sudo systemsetup -setnetworktimeserver time.apple.com
5156
# 24-hour time: on
5257
defaults write .GlobalPreferences AppleICUForce24HourTime -int 1
5358

@@ -94,9 +99,10 @@ if [[ "${OSTYPE:-}" == "darwin"* ]]; then
9499
# ***** Settings > Displays *****
95100
# Enable subpixel font rendering on non-Apple LCDs
96101
defaults write NSGlobalDomain AppleFontSmoothing -int 1
97-
# TODO: Automatically adjust brightness off
98-
# TODO: True Tone off
99-
# TODO: Night Shift... schedule: sunset to sunrise
102+
# Automatically adjust brightness: off
103+
sudo defaults write /Library/Preferences/com.apple.iokit.AmbientLightSensor "Automatic Display Enabled" -int 0
104+
# TODO: True Tone: off (set manually; stored under user-specific UUID in com.apple.CoreBrightness)
105+
# TODO: Night Shift schedule: sunset to sunrise (set manually; stored under user-specific UUID in com.apple.CoreBrightness)
100106

101107
# ***** Settings > Spotlight *****
102108
# Disable Spotlight indexing on external volumes
@@ -126,20 +132,20 @@ if [[ "${OSTYPE:-}" == "darwin"* ]]; then
126132
defaults write .GlobalPreferences com.apple.sound.beep.feedback -bool true
127133

128134
# ***** Settings > Focus *****
129-
# TODO: remove DND schedules / disable DND
135+
# TODO: Focus schedules & Do Not Disturb: disable (set manually; Focus profiles have complex per-user state)
130136

131137
# ***** Settings > Screen Time *****
132138

133139
# ***** Settings > Lock Screen *****
134-
# defaults -currentHost write com.apple.screensaver idleTime -int 1800
135-
# defaults write com.apple.screensaver askForPasswordDelay -int 0
136-
# Start screen saver when inactive for X seconds
137-
defaults -currentHost write com.apple.screensaver idleTime -int 300
138-
# Turn display off on battery when inctive for X minutes
140+
# Turn display off on battery when inctive: for 10 minutes
139141
sudo pmset -b displaysleep 10
140-
# Turn display off on power adapter when inctive for X minutes
142+
# Turn display off on power adapter when inctive: for 10 minutes
141143
sudo pmset -c displaysleep 10
142-
# TODO: Require password after screen saver begins or display is turned off: 1min
144+
# Start screen saver when inactive for X seconds
145+
defaults -currentHost write com.apple.screensaver idleTime -int 300
146+
# Require password after screen saver begins or display is turned off: 1 minute
147+
defaults write com.apple.screensaver askForPassword -int 1
148+
defaults write com.apple.screensaver askForPasswordDelay -int 60
143149
killall "System Settings" || true
144150

145151
# ***** Settings > Privacy & Security *****
@@ -166,7 +172,7 @@ if [[ "${OSTYPE:-}" == "darwin"* ]]; then
166172
defaults write .GlobalPreferences NSAutomaticPeriodSubstitutionEnabled -bool false
167173
# Turn off text replacements (requires restart?)
168174
defaults write .GlobalPreferences WebAutomaticTextReplacementEnabled -bool false
169-
# TODO: keyboard brightness
175+
# TODO: Keyboard brightness (set manually; hardware-controlled; no defaults equivalent)
170176
# macOS Sonoma v14 "redesigned insertion point"
171177
sudo defaults write /Library/Preferences/FeatureFlags/Domain/UIKit.plist redesigned_text_cursor -dict-add Enabled -bool YES
172178

0 commit comments

Comments
 (0)