]> git.phdru.name Git - dotfiles.git/blobdiff - .profile
.profile, .shellrc: use dircolors
[dotfiles.git] / .profile
index 370bb752c217d8599034c45d6b63ff61b92f805f..564c40fb73eb26157692264ac75ce4d5c4602cdf 100644 (file)
--- a/.profile
+++ b/.profile
@@ -75,8 +75,12 @@ if [ -t 0 ] ; then
       ;;
    esac
 
+   if [ -x /usr/bin/dircolors ]; then
+       test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
+   fi
+
    PAGER=less
-   LESS="-gimq"
+   LESS="gimq"
    case "$LC_CTYPE" in
       *UTF-8) LESSCHARSET=utf-8
       ;;