X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=setup.sh;h=1be636c42c91e50bc47ec3d08cfc832fca567259;hb=0caa6b97792b47b11e165b7ca2042c6e43730271;hp=6bede115a519091e3d1c2c1e24cb57f8a19b5b4e;hpb=b7b6b679a7fda0ff3a6643618cd86278083b663f;p=config%2Fdotfiles.git diff --git a/setup.sh b/setup.sh index 6bede11..1be636c 100755 --- a/setup.sh +++ b/setup.sh @@ -64,17 +64,20 @@ perl < lesskey \ | lesskey - chmod 0600 ~/.less +# Custom colors for GNU ls. +if installed dircolors; then + dircolors -b shell/dircolors.in > shell/dircolors +fi + # Find the required options to get colored ls output. GNU ls is preferred. See # shell/aliases.in for details. Doing this here instead of in shell/aliases # speeds up shell starts. # # Check if colors are available. -ls --color > /dev/null 2>&1 -if test $? -eq 0; then +if ls --color > /dev/null 2>&1; then ls_color=gnu else - ls -G > /dev/null 2>&1 - if test $? -eq 0; then + if ls -G > /dev/null 2>&1; then ls_color=cli else ls_color=