]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vcs/setup.sh
vcs/gitconfig: replace "stash save" with "stash push" in aliases
[config/dotfiles.git] / vcs / setup.sh
index bf22f99166748ec23867772fd76e5f1d145c67c0..8ea39ac39c5b1f81a1f266203a70dbf1e0038d51 100755 (executable)
@@ -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