]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vcs/setup.sh
vcs/tigrc: disable history-size option in tig < 2.3
[config/dotfiles.git] / vcs / setup.sh
index 664f938058b015881113d25f75b84854a7895be0..8ea39ac39c5b1f81a1f266203a70dbf1e0038d51 100755 (executable)
@@ -54,6 +54,11 @@ if installed git; then
 fi
 
 if installed tig; then
+    generate tigrc .in cat
+    if tig --version | grep '^tig version 2\.[012]' >/dev/null; then
+        echo 'tigrc: removing history options'
+        grep_i -v '^set history-size = ' tigrc
+    fi
     link tigrc ~/.tigrc
 fi