]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - setup.sh
hgrc: Generate with m4 to allow different paths to hgk.
[config/dotfiles.git] / setup.sh
index a530d1fe260f00595f658987f61fdad76e7c7000..d07008573dc7b7bdf7a1954ea2019e15443decea 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -5,12 +5,15 @@
 
 . ../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