]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
setup.sh: Create alias for tig (git tig) if it's not available.
authorSimon Ruderich <simon@ruderich.org>
Wed, 10 Apr 2013 02:03:09 +0000 (04:03 +0200)
committerSimon Ruderich <simon@ruderich.org>
Wed, 10 Apr 2013 02:03:09 +0000 (04:03 +0200)
setup.sh

index 1be636c42c91e50bc47ec3d08cfc832fca567259..c5406e6b6ce06b5d02c376b12495e9602d1ae447 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -116,6 +116,11 @@ generate perl shell/aliases \
         }' \
     "$ls_env" "$ls_path" "$ls_color" "$column"
 
+# If `tig` is not available use my simple replacement.
+if ! installed tig; then
+    echo "alias tig='git tig'" >>shell/aliases
+fi
+
 # Check if grep supports --color=auto.
 if echo test | grep --color=auto test >/dev/null 2>&1; then
     :