From bb50c9fe188f9620b83fe4ddc43a1fa4a31eefa6 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Mon, 20 Jan 2025 14:50:05 +0200 Subject: [PATCH] chore(scripts): macos default tweaks --- scripts/install-macos-defaults.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/install-macos-defaults.sh b/scripts/install-macos-defaults.sh index acaf107..6b4fc9c 100755 --- a/scripts/install-macos-defaults.sh +++ b/scripts/install-macos-defaults.sh @@ -26,7 +26,7 @@ msgr nested "Change user shell to zsh if it is available and not the current" # Change user shell to zsh if not that already. if hash zsh 2> /dev/null; then - [[ "$SHELL" != $(which zsh) ]] && chsh -s "$(which zsh)" + [[ $SHELL != $(which zsh) ]] && chsh -s "$(which zsh)" fi ############################################################################### @@ -150,7 +150,7 @@ msgr nested "Settings for Finder" # Set Desktop as the default location for new Finder windows # For other paths, use `PfLo` and `file:///full/path/here/` defaults write com.apple.finder NewWindowTarget -string "PfDe" -defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}/Desktop/" +defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}/" # Show icons for external hard drives, servers, and removable media on the desktop defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true @@ -201,6 +201,10 @@ defaults write com.apple.finder FXInfoPanesExpanded -dict \ OpenWith -bool true \ Privileges -bool true +# Move windows by dragging any part of the window +# From https://nikitabobko.github.io/AeroSpace/goodies +defaults write -g NSWindowShouldDragOnGesture -bool true + ############################################################################### # Screenshots # ###############################################################################