As part of preparing for the new year, I've set the goal of cleaning up my entire digital life by bringing order to what is currently a chaotic mashup of files and services floating around across the many devices I own. My library of photos are drifting around in various places, as are the fonts and resources I depend on daily to do my work. With the official release of Yosemite, it seemed like the perfect opportunity to do a clean install and document the setup of my toolchain as the first step towards a better organized, and hopefully more productive life. Once complete, I'll be moving onto cleaning up all my files and setting up a centralized structure on my NAS with portions of it replicated on Dropbox, but I may be getting ahead of myself.
Wiping my rMBP and getting a clean install of Yosemite was a breeze, thanks to the Mavericks installer I had ready on a USB key. I'd recommend creating your own bootable Installer with Yosemite rather than doing a 2-step upgrade like I've done.
Sublime Text 3
ST probably requires no introduction, if you don't currently use it then do yourself a favor and try it out. I've experimented with a few different editors and never looked back since making the switch.
Enabling Package Control
Open the ST console with
ctrl + ' and paste in the following command:
import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
Once Package Control is installed, you can easily install packages by launching the command palette
cmd + shift + P and typing
install to auto complete
Package Control: Install Package
SFTP - Manage file transfers from within ST, I've used it to map my server locally and it makes syncing and publishing remotely stupid simple.
Emmet - Supercharge your HTML and CSS workflow. More information
ColorHighlighter - Preview color values from within ST.
ColorPicker - Update color values with the native color picker with
cmd + shift + C (best used with Skala Color as the native OSX color picker is a bit clunky)
AlignTab - Align lines of code by character (highlighting lines to align then right-click context menu) or by regex (via the command palette)
Gist - Pull the content of a gist into your file, useful if you store boilerplate code as gists that you can then use as a starting point for new files
HTMLPrettify - Cleans up HTML/CSS/JS/JSON using Einar Lielmanis' beautifier scripts.
I use the following values for my preferences which you can access through the command palette and typing in
"theme": "Spacegray Eighties.sublime-theme",
"color_scheme": "Packages/Theme - Spacegray/base16-eighties.dark.tmTheme",
"font_face": "Ubuntu Mono",
Launching Sublime from the Command Line
Sublime comes with a CLI to launch the editor from the command line. In order to get this to work, you first need to set up a symbolic link to it. Before we do that, we should first check if Sublime is in the place we expect it to be by running
$ open /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl. That should open up Sublime 3, meaning we can run the following to set up the symlink:
$ ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime.
We then need to make sure the system profile is looking for things in the proper place. first run
$ open ~/.bash_profile which will open up a text editor. Add
export PATH=/usr/local/bin:$PATH and save and exit. Finally, run
$ source ~/.bash_profile which reloads your profile with the newly added PATH. Try running
$ sublime . and it should open up the current terminal path in Sublime!
I've also grown fond of the Spacegray theme in the Eighties flavor, which I highly recommend.
Alfred's workflows make finding and launching things only a few keystrokes away, and will do wonders in raising productivity. I'm currently using the following workflows:
Can I Use - Easily check on browser compatibility using the
caniuse + property trigger
Encode/Decode - Encode/decode strings (URL/HTML/Base64/etc) using
decode + string
Network Info - Grab your internal/external IP address and Mac addresses using
Open with ST - Open files and folders in ST3 using
The following are a bunch of additional apps and tools that I've come to love and rely on.
Basically a self-hosted Droplr or CloudApp. Great for automating the process of capturing and sharing screenshots.
Being used to the Adobe color pickers, I've always found the native Mac ones annoying and clunky to use. Bjango's take on the color picker is a lot more useful for day-to-day design & development work and will save you a lot of hassle.
I'm a huge fan of the color picker shortcut key for Sketch, and Sip does the same but brings it to the OS level. You can set your hotkey and tweak the settings to grab color values in the format preferred, and it even keeps a history of the colors you've "sipped".
Allows you to quickly create screencasts that are up to 3 minutes long, that can be published online for sharing or stored locally. Requires you to register for an account but it's the most efficient app for this purpose that I've found and well worth the minor hassle of signing up.
Wallpaper by Behance
A convenient little way to set your wallpaper from a collection of Behance submissions. You can set it to shuffle automatically or manually select and change it yourself. Minor quibble is that the collections don't seem to be updated often enough and there is no sync between devices, but a great way to keep your desktop looking fresh, nonetheless.
Crunch your images to make them as lean as possible. I mainly use this on JPG and GIFs, because TinyPNG is ridiculously amazing with PNGs and nothing comes close.
This nifty little app overrides your energy settings when you activate it via the menubar icon and keeps your mac from going to sleep.