Frank Fuchs

a designer who loves to code

Handy system tweaking commands in Terminal

In my dotfiles repository you can find a shell file to configure macOS to some defaults I like. But often you don’t want to do all that changes at once and are looking just for that one command. So here is a (non final) list of commands that I think are handy.

Finder setup

All Finder tweaks must be followed by killall Finder to take effect.

Show all file name extensions

defaults write NSGlobalDomain AppleShowAllExtensions -bool true

Show status bar

defaults write com.apple.finder ShowStatusBar -bool true

Show path bar

defaults write com.apple.finder ShowPathbar -bool true

Avoid creating .DS_Store files on network volumes and USB drives

defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true

Show the ~/Library folder

chflags nohidden ~/Library

Dock setup

To let the Dock modification take effect don’t forget to type killall Dock.

Automatically hide and show the Dock

defaults write com.apple.dock autohide -bool true

Remove the auto-hiding Dock delay

defaults write com.apple.dock autohide-delay -float 0

Remove the animation when hiding/showing the Dock

defaults write com.apple.dock autohide-time-modifier -float 0

Safari tweaks

All followed by a killall Safari.

Prevent Safari from opening ‘safe’ files automatically after downloading

defaults write com.apple.Safari AutoOpenSafeDownloads -bool false

Hide Safari’s bookmarks bar by default

defaults write com.apple.Safari ShowFavoritesBar -bool false

Some other tweaks

Disable autocorrect

defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false

Disable shadows in screenshots

defaults write com.apple.screencapture disable-shadow -bool TRUE
killall SystemUIServer

Configuring your printer’s defaults

In Terminal run cupsctl WebInterface=yes, then visit http://localhost:631/printers in your browser. Here you can select your printer and change all the defaults to your favourite settings.

Comments

There are currently no comments on this article.

Comment

Enter your comment below. Fields marked * are required. You must preview your comment before submitting it.





← dotfiles hooray! all articles

/* */