Skip to content

Instantly share code, notes, and snippets.

@itruls
Last active February 15, 2024 11:33
Show Gist options
  • Save itruls/de2d147f1f5493a52d55601ace58c7b7 to your computer and use it in GitHub Desktop.
Save itruls/de2d147f1f5493a52d55601ace58c7b7 to your computer and use it in GitHub Desktop.
Configuring Mac OS X from command line
# Some found in https://github.com/nicksp/dotfiles/blob/master/osx/set-defaults.sh
###########################
### Finder improvements ###
###########################
echo "Improving Finder:"
# TODO: Should these commands be added to .profile or similar, or do they only need run once.
echo "Show ~/Library folder ..."
chflags nohidden ~/Library
echo "Show hidden files ..."
defaults write com.apple.finder AppleShowAllFiles YES
echo "Show file extensions by default ..."
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
echo "Show path bar ..."
defaults write com.apple.finder ShowPathbar -bool true
echo "Show status bar ..."
defaults write com.apple.finder ShowStatusBar -bool true
echo "Display External harddrives and removable media on Desktop ..."
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true
echo "Use column view in Finder ..."
defaults write com.apple.Finder FXPreferredViewStyle Nlsv
echo "Disable the warning when changing file extensions ..."
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
echo "Run the screensaver if we're in the bottom-left hot corner."
defaults write com.apple.dock wvous-bl-corner -int 5
defaults write com.apple.dock wvous-bl-modifier -int 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment