#!/bin/bash relative() { grealpath --relative-to=$1 $2 } DIR=~/Library/LaunchAgents/ BASE=$(relative $DIR $PWD) ln -s $BASE/daemon.plist ~/Library/LaunchAgents/gnu.emacs.daemon.plist DIR=~/Applications BASE=$(relative $DIR $PWD) ln -s $BASE/emacsclient.applescript ~/Applications/Spacemacs.app