commit 96285c631daa5a2ec22c19100025b98d7e476203 parent f029b7e1c57bd4a2aec3ca69d148a47302eaaec9 Author: Damian Myrda <damian@prime8.dev> Date: Tue, 17 Feb 2026 09:53:03 -0600 add fish default shell and dock configuration to macos setup Diffstat:
| M | macos/setup.sh | | | 20 | ++++++++++++++++++++ |
1 file changed, 20 insertions(+), 0 deletions(-)
diff --git a/macos/setup.sh b/macos/setup.sh @@ -3,6 +3,18 @@ set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +# Change default shell to fish +if command -v fish &>/dev/null; then + FISH_PATH="$(which fish)" + if [ "$SHELL" != "$FISH_PATH" ]; then + echo "Changing default shell to fish..." + if ! grep -q "^$FISH_PATH$" /etc/shells 2>/dev/null; then + echo "$FISH_PATH" | sudo tee -a /etc/shells >/dev/null + fi + chsh -s "$FISH_PATH" + fi +fi + # Homebrew echo "🍺 Installing Homebrew packages with Brewfile..." if ! command -v brew >/dev/null 2>&1; then @@ -24,4 +36,12 @@ brew cleanup && echo "✅ Homebrew cleanup completed" # Symlink configs "$SCRIPT_DIR/link.sh" +# Dock configuration +echo "🎨 Configuring Dock..." +defaults write com.apple.dock orientation -string "left" +defaults write com.apple.dock autohide -bool true +defaults write com.apple.dock show-recents -bool false +killall Dock +echo "✅ Dock configured (left position, autohide, no recent items)" + echo "✅ Setup script completed!"