code / dots / home

1#!/bin/sh
2# HOME -- link stuff to $HOME
3# for configs and what-not
4
5# calling convention: ./home.sh
6if ! test -x "${0##*/}"
7then echo "Call this from the dotfile directory!" >&2; exit 1
8fi
9
10home() {
11	new="$HOME/$2"
12	echo "$1 --> $new"
13	mkdir -p "${new%/*}"
14	ln -sf "$PWD/$1" "$new"
15}
16
17### Dotfiles go here
18## e.g. `home emacs .emacs`
19
20home emacs/init.el		.emacs
21home emacs/eshell-alias	.emacs.d/eshell/alias
22home emacs/case-theme.el	.emacs.d/case-theme.el
23home emacs/early-init.el	.emacs.d/early-init.el
24
25home user-dirs/dirs		.config/user-dirs.dirs
26home user-dirs/locale		.config/user-dirs.locale
27
28home sshrc			.ssh/config
29
30home sbclrc			.sbclrc