home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!erato!jdb
- From: jdb@erato.iowa-city.ia.us (John D. Boggs)
- Newsgroups: comp.os.coherent
- Distribution: world
- Subject: getting an ls alias to work in super-user shells?
- Keywords: alias shell superuser
- Message-ID: <93010913505@erato.iowa-city.ia.us>
- Date: Sat, 9 Jan 93 10:38:35 +0100
- Lines: 17
-
- Good morning, all.
-
- I have an alias set up in my $HOME directory to make "ls" always
- "ls -C". This is great, because now I don't have to watch everything
- scroll off the screen!
-
- But, woe is me! I make liberal use of "su" to take care of administration
- tasks on my system (bin and news, mostly, FWIW), and when I'm su'd ls
- reverts right back to its default left screen sail-everything-by-you
- mode.
-
- Can I do anything to make "ls" *always* be "ls -C"? I did try using a
- shell script in /usr/local/bin, which I've placed ahead of /usr/bin in my
- path, but that was *slow*.
-
- Advance thanks goes out to all!
-
- -John D. Boggs jdb@erato.iowa-city.ia.us
-