lkml.org 
[lkml]   [1999]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux Makefile uses 'ls', causes problems with color-ls (PATCH)
Horst von Brand wrote:

> 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/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.068 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site