X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vcs%2Fsetup.sh;h=8ea39ac39c5b1f81a1f266203a70dbf1e0038d51;hb=4fc2ad6c2abc2b857d52d14ac948d21e96390ab3;hp=bf22f99166748ec23867772fd76e5f1d145c67c0;hpb=6ca1d9bd09d69a729b389694866006c985eba3e0;p=config%2Fdotfiles.git diff --git a/vcs/setup.sh b/vcs/setup.sh index bf22f99..8ea39ac 100755 --- a/vcs/setup.sh +++ b/vcs/setup.sh @@ -54,11 +54,12 @@ if installed git; then fi if installed tig; then - if tig --version | grep -F 'tig version 1.' >/dev/null; then - link tigrc.old ~/.tigrc - else - link tigrc ~/.tigrc + 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 if installed hg; then