From: Simon Ruderich Date: Wed, 13 Jun 2018 14:56:21 +0000 (+0200) Subject: vcs/tigrc: disable history-size option in tig < 2.3 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=a474f0d3bccfcba379044b2bb6447d35ff4a14c6;p=config%2Fdotfiles.git vcs/tigrc: disable history-size option in tig < 2.3 Prevents an annoying error message on each tig start. --- diff --git a/vcs/.gitignore b/vcs/.gitignore index a296e88..f1477dd 100644 --- a/vcs/.gitignore +++ b/vcs/.gitignore @@ -1,2 +1,3 @@ cvsrc gitconfig +tigrc diff --git a/vcs/setup.sh b/vcs/setup.sh index 664f938..8ea39ac 100755 --- a/vcs/setup.sh +++ b/vcs/setup.sh @@ -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 diff --git a/vcs/tigrc b/vcs/tigrc.in similarity index 100% rename from vcs/tigrc rename to vcs/tigrc.in