. ../lib.sh
-# Generate gitconfig.
-m4 gitconfig -DHOME=$HOME -DOS=`os`
-
-# Link setup.
+generate m4 gitconfig -DGITIGNORE=`pwd`/gitignore -DOS=`os`
link gitconfig ~/.gitconfig
-link gitignore ~/.gitignore
+
if installed hg; then
link hgrc ~/.hgrc
link hgignore ~/.hgignore