]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - setup.sh
setup.sh: Only create git configs when it's available.
[config/dotfiles.git] / setup.sh
index 2fd5d54cb767f2aa8f14292eb7f1ea19fe6dd23d..d13b36fa27cc468efd33ae23ec851816a1b9053c 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -5,12 +5,17 @@
 
 . ../lib.sh
 
-# Generate gitconfig.
-generate m4 gitconfig -DGITIGNORE=`pwd`/gitignore -DOS=`os`
+if installed git; then
+    generate m4 gitconfig -DGITIGNORE=`pwd`/gitignore -DOS=`os`
+    link gitconfig ~/.gitconfig
+fi
+
+if installed tig; then
+    link tigrc ~/.tigrc
+fi
 
-# Link setup.
-link gitconfig ~/.gitconfig
 if installed hg; then
+    generate m4 hgrc -DOS=`os`
     link hgrc ~/.hgrc
     link hgignore ~/.hgignore
 fi