comparison rc/bash @ 267:e35a36bb832e

Always export LSCOLORS and CLICOLOR
author Edho Arief <edho@myconan.net>
date Thu, 24 Nov 2011 13:03:45 +0700
parents 69b9cbf9f3c0
children feab84a8efdb
comparison
equal deleted inserted replaced
266:69b9cbf9f3c0 267:e35a36bb832e
22 export HISTCONTROL=ignoredups 22 export HISTCONTROL=ignoredups
23 23
24 export PAGER="less -Rins" 24 export PAGER="less -Rins"
25 export EDITOR=vi 25 export EDITOR=vi
26 export LANG="en_US.UTF-8" 26 export LANG="en_US.UTF-8"
27 unset LS_COLORS 27 export CLICOLOR=
28 export LSCOLORS=ExGxFxdxCxegedabagExEx
28 29
29 alias less="less -Rins" 30 alias less="less -Rins"
30 #assuming POSIX grep 31 #assuming POSIX grep
31 alias fgrep="grep -F" 32 alias fgrep="grep -F"
32 alias egrep="grep -E" 33 alias egrep="grep -E"
54 done 55 done
55 alias ping="ping -s" 56 alias ping="ping -s"
56 alias ping6="ping -A inet6" 57 alias ping6="ping -A inet6"
57 [ -f "/usr/share/lib/terminfo/?/${TERM}" ] || export TERM=dtterm 58 [ -f "/usr/share/lib/terminfo/?/${TERM}" ] || export TERM=dtterm
58 ;; 59 ;;
59 FreeBSD)
60 export CLICOLOR=
61 export LSCOLORS=ExGxFxdxCxegedabagExEx
62 ;;
63 OpenBSD) 60 OpenBSD)
64 PATH="${PATH}:/usr/X11R6/bin" 61 PATH="${PATH}:/usr/X11R6/bin"
65 if command -v gls > /dev/null 2>&1; then 62 if command -v gls > /dev/null 2>&1; then
66 _has_gnu_ls=y 63 _has_gnu_ls=y
67 _ls="gls" 64 _ls="gls"
68 elif command -v colorls > /dev/null 2>&1; then 65 elif command -v colorls > /dev/null 2>&1; then
69 export CLICOLOR=
70 export LSCOLORS=ExGxFxdxCxegedabagExEx
71 alias ls='colorls -F' 66 alias ls='colorls -F'
72 fi 67 fi
73 ;; 68 ;;
74 NetBSD) 69 NetBSD)
75 PATH="${PATH}:/usr/pkg/bin:/usr/pkg/sbin" 70 PATH="${PATH}:/usr/pkg/bin:/usr/pkg/sbin"
76 if command -v gls > /dev/null 2>&1; then 71 if command -v gls > /dev/null 2>&1; then
77 _has_gnu_ls=y 72 _has_gnu_ls=y
78 _ls="gls" 73 _ls="gls"
79 elif command -v colorls > /dev/null 2>&1; then 74 elif command -v colorls > /dev/null 2>&1; then
80 export CLICOLOR=
81 export LSCOLORS=ExGxFxdxCxegedabagExEx
82 alias ls='colorls -F' 75 alias ls='colorls -F'
83 fi 76 fi
84 ;; 77 ;;
85 CYGWIN*) 78 CYGWIN*)
86 export PATH="${PATH}:${_org_path}" 79 export PATH="${PATH}:${_org_path}"