#!/bin/sh # HOME -- link stuff to $HOME # for configs and what-not # calling convention: ./home.sh if ! test -x "${0##*/}" then echo "Call this from the dotfile directory!" >&2; exit 1 fi home() { new="$HOME/$2" echo "$1 --> $new" mkdir -p "${new%/*}" ln -sf "$PWD/$1" "$new" } ### Dotfiles go here ## e.g. `home emacs .emacs` home emacs/init.el .emacs home emacs/eshell-alias .emacs.d/eshell/alias home emacs/case-theme.el .emacs.d/case-theme.el home emacs/early-init.el .emacs.d/early-init.el home user-dirs/dirs .config/user-dirs.dirs home user-dirs/locale .config/user-dirs.locale home sshrc .ssh/config home sbclrc .sbclrc