From: Simon Ruderich Date: Wed, 10 Apr 2013 02:03:09 +0000 (+0200) Subject: setup.sh: Create alias for tig (git tig) if it's not available. X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=020f30113df431a611f9a6ec9d963f1da38bb8ec setup.sh: Create alias for tig (git tig) if it's not available. --- 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 :