Permalink
Browse files

Symlink ~/.config/templates to $SRCDIR/templates

  • Loading branch information...
1 parent 0ad0dbd commit 1e9f6c0655a077fab43ca9a9dd314832e120f4a0 @ithinkihaveacat committed Jan 8, 2013
Showing with 12 additions and 0 deletions.
  1. +12 −0 install
View
12 install
@@ -143,3 +143,15 @@ for f in $SRCDIR/bin/* ; do
x ln -s $f "/usr/local/bin/$(basename $f)"
fi
done
+
+# git
+
+# HACK! .gitconfig expects the templates to be in ~/.config/templates (hard-
+# coded; .gitconfig doesn't seem to support any sort of variable expansion), so
+# if the bulk of the files are stored elsewhere (because ~/.config is already
+# used, as on Ubuntu), create a symlink from ~/.config/templates to the real
+# location.
+
+if [ ! -d "$HOME/.config/templates" ]; then
+ x ln -s "$SRCDIR/templates" "$HOME/.config/templates"
+fi

0 comments on commit 1e9f6c0

Please sign in to comment.