From a474f0d3bccfcba379044b2bb6447d35ff4a14c6 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 13 Jun 2018 16:56:21 +0200 Subject: [PATCH] vcs/tigrc: disable history-size option in tig < 2.3 Prevents an annoying error message on each tig start. --- vcs/.gitignore | 1 + vcs/setup.sh | 5 +++++ vcs/{tigrc => tigrc.in} | 0 3 files changed, 6 insertions(+) rename vcs/{tigrc => tigrc.in} (100%) 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 -- 2.45.2