dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit dbc92fb5e37a5f0de932a966753819f33411acd5
parent cef9414d1303cf1809d33cef1c147e13deddea39
Author: Chris Bracken <chris@bracken.jp>
Date:   Sat, 20 Oct 2012 23:14:18 -0700

Generalized dircolors check

Diffstat:
M.aliases | 12++----------
1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/.aliases b/.aliases @@ -1,15 +1,7 @@ # ~/.aliases -case $(uname -s) in - Darwin) - dircolors='/opt/local/libexec/gnubin/dircolors' - ;; - Linux) - dircolors='/usr/bin/dircolors' - ;; -esac -if [ -x "$dircolors" ]; then - test -r ~/.dircolors && eval "$($dircolors -b ~/.dircolors)" || eval "$($dircolors -b)" +if [ -x `which dircolors` ]; then + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto'