home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / coherent / 6702 < prev    next >
Encoding:
Internet Message Format  |  1993-01-09  |  963 b 

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