]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - setup.sh
tigrc: Add ft=muttrc modeline as it's very similar.
[config/dotfiles.git] / setup.sh
index 283a8ee531213f52d0e4415266593a98dea12fd8..09c2fa6fcc88bd13af03ba1d26479dba2af78ac2 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -5,13 +5,16 @@
 
 . ../lib.sh
 
-# Generate gitconfig.
-m4 gitconfig -DHOME=$HOME -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
-link gitignore ~/.gitignore
 if installed hg; then
+    generate m4 hgrc -DHGIGNORE=`pwd`/hgignore -DOS=`os`
     link hgrc ~/.hgrc
-    link hgignore ~/.hgignore
 fi