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