#!/usr/bin/env zsh if [[ -s $commands[emacs] ]] then if [[ -z $commands[cask] ]] then git clone git://github.com/cask/cask ~/.cask if [[ ! -d ~/bin ]] then mkdir ~/bin fi ln -s ~/.cask/bin/cask ~/bin/cask fi pushd ~/.emacs.d cask install popd emacs --batch --eval '(batch-byte-recompile-directory 0)' ~/.emacs.d/elisp fi