Skip to content

Commit a688111

Browse files
committed
Clear Dock apps and folders on install
1 parent ad7ce19 commit a688111

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ install() {
8989
touch "$HOME/.hushlogin"
9090
echo "✓ Hush login"
9191

92+
section "Configuring dock defaults..."
9293
. "$INSTALLER_DIR/install/mac.sh"
9394
echo "✓ Settings"
9495

install/mac.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ defaults write com.apple.dock orientation -string "right"
66
defaults write com.apple.dock autohide -bool true
77
defaults write com.apple.dock tilesize -int 43
88

9+
# Clear all apps and folders from the Dock
10+
defaults write com.apple.dock persistent-apps -array
11+
defaults write com.apple.dock persistent-others -array
12+
913
# Normal (non-natural) scroll direction
1014
defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false
1115

0 commit comments

Comments
 (0)