X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=setup.sh;h=6bede115a519091e3d1c2c1e24cb57f8a19b5b4e;hb=b7b6b679a7fda0ff3a6643618cd86278083b663f;hp=3a5e7f2f6b637d4a858f0e1333d80f30880c72e6;hpb=da5c4d23313e75ade3d971dab90e9d3f0a94dd1d;p=config%2Fdotfiles.git diff --git a/setup.sh b/setup.sh index 3a5e7f2..6bede11 100755 --- a/setup.sh +++ b/setup.sh @@ -95,14 +95,23 @@ else ls_env= ls_color= fi + +# Also check if `column -t` is available. +if echo test | column -t >/dev/null 2>&1; then + column=' | column -t' +else + column= +fi + generate perl shell/aliases \ -e 'while () { s/\bLS_ENV\b/$ARGV[0]/; s/\bLS_PATH\b/$ARGV[1]/; s/\bLS_COLOR\b/$ARGV[2]/; + s/\bCOLUMN\b/$ARGV[3]/; print; }' \ - "$ls_env" "$ls_path" "$ls_color" + "$ls_env" "$ls_path" "$ls_color" "$column" # Check if grep supports --color=auto. if echo test | grep --color=auto test >/dev/null 2>&1; then