#!/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."