Files
os-init/macos/macos-init.sh
T
guofangandClaude Sonnet 5.5 ca735e96ed Initial commit
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 22:43:39 +08:00

21 lines
491 B
Bash
Executable File

#!/usr/bin/env bash
set -Eeuo pipefail
# Runtime environment
if [[ "$(uname -s)" != "Darwin" ]]; then
echo "Error: this script supports macOS only." >&2
exit 1
fi
# Show all file extensions in Finder
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Show the path bar in Finder
defaults write com.apple.finder ShowPathbar -bool true
# Restart Finder so the settings above take effect
killall Finder >/dev/null 2>&1 || true
echo "macOS configuration completed."