Disable the Swoosh animation for Mac OS X Spaces

So, as it turns out there’s a way to disable the motion sickness-inducing Swoosh! animation that happens when you switch between Spaces (virtual desktops) in Mac OS X.

This appears to work on my 10.6.5 machine, but I haven’t tested it anywhere else.

defaults write com.apple.dock \
    workspaces-swoosh-animation-off \
    -bool YES &&
    killall Dock