]> err.no Git - dotfiles/commitdiff
conditionally set LS_OPTIONS
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Sat, 19 Oct 2002 21:18:26 +0000 (21:18 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Sat, 19 Oct 2002 21:18:26 +0000 (21:18 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@80 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

environment

index 6c66f18f70d7ffb8cc5f8d58663db7b2dae39e4c..77619cfb329ad0d2417918823a185634b962be15 100644 (file)
@@ -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