]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vcs/tigrc: disable history-size option in tig < 2.3
authorSimon Ruderich <simon@ruderich.org>
Wed, 13 Jun 2018 14:56:21 +0000 (16:56 +0200)
committerSimon Ruderich <simon@ruderich.org>
Wed, 13 Jun 2018 14:58:31 +0000 (16:58 +0200)
Prevents an annoying error message on each tig start.

vcs/.gitignore
vcs/setup.sh
vcs/tigrc.in [moved from vcs/tigrc with 100% similarity]

index a296e88d505797ff37c75a934b0775cc374bf652..f1477dd4722f8992f49d9b7b86034831b20b7f9b 100644 (file)
@@ -1,2 +1,3 @@
 cvsrc
 gitconfig
+tigrc
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
 
similarity index 100%
rename from vcs/tigrc
rename to vcs/tigrc.in