#! /bin/sh DEST_DIR="$1" if [ ! -d $DEST_DIR ]; then mkdir -p $DEST_DIR fi cd $DEST_DIR && \ wget https://github.com/shen390s/frontmacs/blob/master/scripts/init-frontmacs.el && \ echo "(load (expand-file-name "init-frontmacs.el" user-emacs-directory))" >>init.el