From: tfheen Date: Sat, 19 Oct 2002 21:18:26 +0000 (+0000) Subject: conditionally set LS_OPTIONS X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14cdaa5b6ad7274e2a0db879ba6ebaeb26d88410;p=dotfiles conditionally set LS_OPTIONS git-svn-id: file:///svn/tfheen/trunk/dotfiles@80 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/environment b/environment index 6c66f18..77619cf 100644 --- a/environment +++ b/environment @@ -1,7 +1,10 @@ # POSIX -*- sh -*- # -LS_OPTIONS="-B --color=auto -FN" +LS_OPTIONS= +for lsopt in -B --color=auto -FN; do + ls $lsopt > /dev/null 2>&1 && LS_OPTIONS="$LS_OPTIONS $lsopt" +done CVSROOT=~/data/cvs EDITOR=emacs TZ=CET