3 if [ -x /usr/bin/dircolors ]; then
4 test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
5 alias ls='ls --color=auto'
6 alias dir='dir --color=auto'
7 alias vdir='vdir --color=auto'
9 alias grep='grep --color=auto'
10 alias fgrep='fgrep --color=auto'
11 alias egrep='egrep --color=auto'
15 ls_out=$(\ls -lah --color=always "$@")
16 let "allowed_lines = $(tput lines) - 3"
17 if [ $(echo "$ls_out" | wc -l) -le $allowed_lines ]; then
20 echo "$ls_out" | less -r
23 alias tmux='TERM=xterm-256color tmux'