Skip to content

Commit 4fe4093

Browse files
fumiya-kumeclaude
andcommitted
Remove security-reducing macOS settings and fix shell configs
- Remove AutomaticCheckEnabled, AutoUpdate, and LSQuarantine settings that disable security features - Move Homebrew initialization out of .zprofile - Fix history function to properly handle multiline entries 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 194ed65 commit 4fe4093

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

home/.zprofile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
# Homebrew
2-
if [[ -x /opt/homebrew/bin/brew ]]; then
3-
eval "$(/opt/homebrew/bin/brew shellenv)"
4-
elif [[ -x /usr/local/bin/brew ]]; then
5-
eval "$(/usr/local/bin/brew shellenv)"
6-
fi
7-
81
# PATH additions
92
export PATH="/Library/TeX/texbin:$PATH"
103
export PATH="$HOME/Library/Application Support/JetBrains/Toolbox/scripts:$PATH"

home/.zshrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ h() {
6161
emulate -L zsh
6262
local selected src
6363
src=$(builtin fc -ln 1 2>/dev/null) || return
64-
selected=$(printf '%s\n' $src | awk '{a[NR]=$0} END{for(i=NR;i>=1;i--)if(!seen[a[i]]++)print a[i]}' | peco) || return
64+
selected=$(printf '%s\n' "${(f)src}" | awk '{a[NR]=$0} END{for(i=NR;i>=1;i--)if(!seen[a[i]]++)print a[i]}' | peco) || return
6565
[[ -z "$selected" ]] && return
6666
print -s -- "$selected"
6767
echo "+ $selected"

scripts/setup-macos.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
defaults write com.apple.finder AppleShowAllFiles TRUE
2-
defaults write com.apple.SoftwareUpdate AutomaticCheckEnabled -bool false
3-
defaults write com.apple.commerce AutoUpdate -bool false
42
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
53
defaults write com.apple.finder QLEnableTextSelection -bool true
64
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
@@ -10,7 +8,6 @@ defaults write com.apple.dock autohide -bool true
108
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -boolean true
119
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag -bool true && \
1210
defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag -bool true
13-
defaults write com.apple.LaunchServices LSQuarantine -bool false
1411
defaults write com.apple.dock static-only -bool true
1512
defaults write com.apple.TextEdit RichText -int 0
1613
sudo chflags nohidden /Volumes

0 commit comments

Comments
 (0)