> I've got an alias for ls that just puts color iff the output
> is a tty.
It's actually worthwhile protecting a lot of shell settings
like that. The bash `noclobber' option also breaks a
significant number of shell scripts, including those that
start X.
# Interactive options
if tty -s
then
# History
export history_control=ignoredups
export command_oriented_history
# Don't `bash' files with `pipe' :-)
set -o noclobber
# Pretty ls
alias lls='/bin/ls -lakpA --color=tty'
# cd looks about filesystem and environment before failing
export CDPATH=".:~"
export cdable_vars
# Don't complete to backup or binary files
export FIGNORE="~:.bak:.o"
# Sometimes we want to come back
alias pd=pushd
alias ppd=popd
fi
-- Glen Turner Network Specialist Tel: (08) 8303 3936 Information Technology Services Fax: (08) 8303 4400 The University of Adelaide 5005 Email: glen.turner@adelaide.edu.au South Australia- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/