]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - setup.sh
tigrc: update for tig >= 2.0
[config/dotfiles.git] / setup.sh
index c2b3bb991526a65ae78e7058ef11729cc0a69d46..0f93a8c9864eb33b4849d8d032503d1a1dd36874 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -55,7 +55,11 @@ if installed git; then
 fi
 
 if installed tig; then
-    link tigrc ~/.tigrc
+    if tig --version | grep -F 'tig version 1.' >/dev/null; then
+        link tigrc.old ~/.tigrc
+    else
+        link tigrc ~/.tigrc
+    fi
 fi
 
 if installed hg; then