From 020f30113df431a611f9a6ec9d963f1da38bb8ec Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 10 Apr 2013 04:03:09 +0200 Subject: [PATCH] setup.sh: Create alias for tig (git tig) if it's not available. --- setup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.sh b/setup.sh index 1be636c..c5406e6 100755 --- 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 : -- 2.45.2