📱 Applications
⌘ CLI Tools
🔧 Configuration
Custom Installation Script
custom-script.sh
# ===========================================
# 1. Install Oh-My-Zsh
# ===========================================
if [ ! -d "$HOME/.oh-my-zsh" ]; then
echo "Installing Oh-My-Zsh..."
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
fi
# ===========================================
# 2. Install zsh plugins
# ===========================================
ZSH_CUSTOM="${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}"
PLUGINS_DIR="$ZSH_CUSTOM/plugins"
mkdir -p "$PLUGINS_DIR"
install_plugin() {
local name="$1" repo="$2"
[ ! -d "$PLUGINS_DIR/$name" ] && git clone --depth=1 "$repo" "$PLUGINS_DIR/$name"
}
install_plugin "zsh-autosuggestions" "https://github.com/zsh-users/zsh-autosuggestions"
install_plugin "zsh-syntax-highlighting" "https://github.com/zsh-users/zsh-syntax-highlighting"
# ===========================================
# 3. Configure macOS preferences
# ===========================================
echo "Configuring macOS preferences..."
# Dock
defaults write com.apple.dock autohide -bool false
defaults write com.apple.dock autohide-delay -float 0
defaults write com.apple.dock show-recents -bool false
defaults write com.apple.dock tilesize -int 38
defaults delete com.apple.dock persistent-apps 2>/dev/null || true
DOCK_APPS=(
"/Applications/Google Chrome.app"
"/Applications/Visual Studio Code.app"
"/Applications/Feishu.app"
)
for app in "${DOCK_APPS[@]}"; do
if [ -d "$app" ]; then
defaults write com.apple.dock persistent-apps -array-add "<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>$app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>"
fi
done
# Desktop
defaults write com.apple.WindowManager EnableStandardClickToShowDesktop -bool false
# Menu Bar - Sound always visible
defaults write com.apple.controlcenter "NSStatusItem Visible Sound" -bool true
defaults -currentHost write com.apple.controlcenter Sound -int 18
# Finder
defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
defaults write com.apple.finder NewWindowTarget -string "PfHm"
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
# Trackpad - tap to click
defaults write com.apple.AppleMultitouchTrackpad Clicking -bool true
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
# Restart affected services
killall Dock
killall ControlCenter 2>/dev/null || true
killall Finder
sleep 2
# Login items
osascript <<OSA 2>/dev/null || true
tell application "System Events"
set apps to {{"Scroll Reverser", "/Applications/Scroll Reverser.app"}, {"Maccy", "/Applications/Maccy.app"}}
repeat with a in apps
set n to item 1 of a
set p to item 2 of a
try
delete login item n
end try
make new login item with properties {name:n, path:p, hidden:false}
end repeat
end tell
OSA
echo "macOS setup complete!"Create Your Own Configuration
Build and share your perfect dev environment in minutes