From: Oleg Broytman Date: Tue, 6 Oct 2015 18:55:17 +0000 (+0300) Subject: .profile, .shellrc: use dircolors X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=84e68b1fc87491881b3262b05347cdd871b1a119;p=dotfiles.git .profile, .shellrc: use dircolors --- diff --git a/.profile b/.profile index a398165..564c40f 100644 --- a/.profile +++ b/.profile @@ -75,6 +75,10 @@ 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" case "$LC_CTYPE" in diff --git a/.shellrc b/.shellrc index d2e56a6..e189ac8 100644 --- a/.shellrc +++ b/.shellrc @@ -141,6 +141,10 @@ include() } +grep() { command grep --color=auto "$@"; } +fgrep() { command fgrep --color=auto "$@"; } +egrep() { command egrep --color=auto "$@"; } +ls() { command ls --color=auto "$@"; } mc() {