dotfiles

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

commit 72769d856c645d49a7b6374c3b4be7b4530efbcc
parent 1c53b48b3644d02d852e0c6d04d5deb99613a502
Author: Chris Bracken <cbracken@google.com>
Date:   Mon, 22 Oct 2012 11:48:11 -0700

Use exact paths for fortune, dircolors checks

Diffstat:
M.aliases | 3++-
M.profile | 8+++++---
2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/.aliases b/.aliases @@ -1,6 +1,7 @@ # ~/.aliases -if [ -x `which dircolors` ]; then +# add color +if [[ -x /usr/bin/dircolors || -x /opt/local/libexec/gnubin/dircolors ]]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' alias grep='grep --color=auto' diff --git a/.profile b/.profile @@ -26,7 +26,9 @@ fi [ -d /opt/local/libexec/gnubin ] && PATH="/opt/local/libexec/gnubin:$PATH" # login message -if [ -x `which fortune` ]; then - fortune - echo "" +if [ -x /usr/games/fortune ]; then + /usr/games/fortune +elif [ -x /opt/local/bin/fortune ]; then + /opt/local/bin/fortune fi +echo