echo "Use current directory as default search scope in Finder"
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
echo "Show Path bar in Finder"
defaults write com.apple.finder ShowPathbar -bool true
echo "Show Status bar in Finder"
defaults write com.apple.finder ShowStatusBar -bool true
echo "Set a shorter Delay until key repeat"
defaults write NSGlobalDomain InitialKeyRepeat -int 12
# Automatically hide and show the Dock
# defaults write com.apple.dock autohide -bool true
# Show remaining battery time; hide percentage
# defaults write com.apple.menuextra.battery ShowPercent -string "NO"
# defaults write com.apple.menuextra.battery ShowTime -string "YES"
# echo "Always show scrollbars"
# defaults write NSGlobalDomain AppleShowScrollBars -string "Auto"
# Disable window animations and Get Info animations in Finder
# defaults write com.apple.finder DisableAllAnimations -bool true
# Don’t animate opening applications from the Dock
# defaults write com.apple.dock launchanim -bool false
# Disable opening and closing window animations
# defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
# Empty Trash securely by default
# defaults write com.apple.finder EmptyTrashSecurely -bool true
# Remove useless icons from Safari’s bookmarks bar
# defaults write com.apple.Safari ProxiesInBookmarksBar "()"
# Disable send and reply animations in Mail.app
# defaults write com.apple.Mail DisableReplyAnimations -bool true
# defaults write com.apple.Mail DisableSendAnimations -bool true
# Disable Resume system-wide
# defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false
#Fix for the ancient UTF-8 bug in QuickLook (http://mths.be/bbo)
# Commented out, as this is known to cause problems when saving files in Adobe Illustrator CS5 :(
#echo "0x08000100:0" > ~/.CFUserTextEncoding
Oh well, glad to see my dotfiles are of use!
Alas, so someone else can take credit for it with plausible deniability.
All that the 'defaults' command does is alter values stored in plist files, which are located in /Library/Preferences (and for the user in ~/Library/Preferences).
You can add something like this to the top of the script:
echo "Making a backup.."
tar -pzcf ~/preferences-`date "+%Y%m%d-%H%M%S"`.tgz ~/Library/Preferences /Library/Preferences
Thanks to the respective hack my Samsung 24" has suddenly become acceptable to work on again. Awesome.
I'm not being snide; it's happened to me. I used to be a typesetter, and yet when I had trouble using Inconsolata in Sublime Text, I reverted back to Menlo, which I hated - and spent the next few months preaching about how hard I'd worked to find the Perfect Programmer Font For Me, not realizing I wasn't actually looking it in the editor. Worse, I was seeing it in Terminal; I had no excuse.
It's the visual equivalent of the classic audio production goof: You spend hours tweaking a particular equalizer setting, everybody agrees that it sounds perfect now, and then realize the EQ hasn't been patched in at all and you've been changing nothing.
It bugs me that I thought I needed a better screen instead of instantly seeing what's the issue. Especially since I used to play around a lot with the Freetype settings in Ubuntu and should have known what makes the fonts look the way they do.
But then again I trusted Apple to not let this kind of stuff happen.
Other things i miss are basics like double clicking the title bar to maximise, right clicking to create a new file and a few other things i miss from linux.
defaults write com.apple.Terminal FocusFollowsMouse -string YES
Also with XQuartz, you can set X11 windows to focus follows mouse in the Preferences > Window screen.
In addition one thing I've always missed is being able to lower the Z-order of a window to the bottom of the window stack by clicking on the middle (or third) mouse button on the window title bar.
I do NOT care for copy-on-select, I like copy to be an explicit action. That way I can select, copy, select, paste to replace. With copy-on-select, you have to select, paste, select, delete which is less natural for me.
Just got my Mac. I am trying to figure out how to efficiently run a Linux virtual machine.
Edit: Figured it out, DNS issue: sudo apt-get remove libavahi-common3
Steve Yegge mentioned in a rant a while back.
I have to say I like OS X's behavior much much more. Directing key strokes to a window that my mouse just happens to point to would be very confusing (to me at least).
other well documented one is the ability to turn the laptop screen of when using another screen but still the laptop keyboard
Your application determines the initial size and position of a window, which is called the standard state. If the user changes a window's size or location by at least 7 points, the new size and location is the called the user state. The user can toggle between the standard state and the user state by clicking the zoom button in the title bar.
Considering the number of complaints though, you'd think Apple would introduce a preference setting, or another button or something. And in fact they have - in 10.7 there's a maximize button in the top right corner...
Except the new button is officially called the "fullscreen" button and to hear some people talk, the existence of the fullscreen mode is a foreboding sign of the coming iPad-ification of OS X...
Shortcuts that I can't live without: Cmd+Shift+Up = Maximize. Cmd+Shift+Left = Move to Left Display (my big monitor). Cmd+Shift+Right = Move to Right Display (my laptop monitor). Cmd+Shift+PgUp/PgDown = Move to top/bottom of screen. Etc, etc.
you can set the keyboard shortcut to maximize the window, or split it left/right like you can in Windows 7. The trial is pretty good, you get a windows to click away everytime the app starts but that's usually it.
I'm not sure why the site is down. But I mirrored it here.
It's entirely preference, dependent on the specs of the workstation and the user's ability to open a couple hundred web browser tabs, 5 VMs, and 2 different O(log n) sorting operations on some database all at once while still maintaing a Skype conversation with a co-worker.
At least one of these changes (disabling local backups) doesn't even increase performance. Unless you just like data loss.
git clone email@example.com:dave-gallagher/OSX-For-Cocoa-Hackers.git
This is the type of security that actually leads to less security. Eventually I'll get so sick of not being able to hit the back button on my browser (or whatever similarly impactful action that OSX decides is going to destroy my machine) without special one-time-only admin privileges that I'll just remove the password from my account altogether.
(Fair warning, I'm presuming the back button of which you speak is a Safari back button. I have not experienced this problem myself and I have full-disk encryption on, which requires you to enter a password for most anything.)
"Alt-Tab" switches between windows in the order you last focused each window, so it's ideally suited to a stack-based workflow where you may have many windows open but are only using a few of them. OS X already has "Command-Tab", but that switches between applications, not windows.
Okay. Now just to check…
> MacBook:~ ralf$ defaults read com.apple.dock enable-spring-load-actions-on-all-items
2012-03-31 12:46:35.173 defaults[33945:707]
The domain/default pair of (/Users/ralf/Library/Preferences/com.apple.dock.plist, enable-spring-load-actions-on-all-items) does not exist
defaults write com.apple.dock enable-spring-load-actions-on-all-items -bool true
Unfortunately it won't help those of you who have "upgraded" to Lion...
A lot of those Finder options are just going to increase noise on the screen. It's rare that I ever need to know the full path of something in OS X. Either I'm already on the command line, or I just use Spotlight.
Disabling the “Are you sure you want to open this application?” dialog seems just wrong. Confirming once per program downloaded from the net seems like a sane default.
Anyway these are pretty subjective things. Good thing they're so easy to pick and choose from and revert.
Can you provide an example of an external display on which it's not necessary or harmful?
I will never understand this.
The quarantine is the bit that causes a dialog to pop up the first time you attempt to open a file newly downloaded from the internet that has the executable bit set. Good for catching, say, executables disguised as documents, or stopping anything from exploiting a browser hole to get an executable downloaded to your machine and opened by your browser.
Other than that, looks great :)