home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / shell / 5233 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.2 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!decwrl!autodesk!dansmith
  2. From: dansmith@Autodesk.COM (Daniel Smith)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: alias probem in tcsh and csh
  5. Message-ID: <18274@autodesk.COM>
  6. Date: 4 Jan 93 05:10:38 GMT
  7. References: <1993Jan3.181726.3147@mnemosyne.cs.du.edu>
  8. Organization: Autodesk Inc., Sausalito CA, USA
  9. Lines: 26
  10.  
  11. In <1993Jan3.181726.3147@mnemosyne.cs.du.edu> rduta@nyx.cs.du.edu (Radu) writes:
  12.  
  13. > I was trying to create some aliases for ls, and i ran into some minor
  14. > problems, well for starters i'll list my aliases:
  15. > alias ls 'ls -F \!* | more'
  16. > alias dir 'ls -aol '
  17.  
  18. > Ok, her's are the problems: I'd like to put a "more" in the dir alias as well,
  19. > but it conflicts with the ls, and the space bar doesn't work for paging any
  20.  
  21.     use absolute pathnames:
  22.  
  23. if (! $?PAGER) setenv PAGER /usr/ucb/more
  24. alias ls '/bin/ls -F \!* | $PAGER'
  25. alias dir '/bin/ls -aol \!* | $PAGER'
  26.  
  27.     or:
  28.  
  29. alias dir '\ls -aol'
  30.  
  31.                 Daniel
  32. -- 
  33.  dansmith@autodesk.com       daniel@world.std.com       dansmith@well.sf.ca.us
  34.         Daniel Smith, Autodesk, Sausalito, California, (415) 332-2344 x 2580
  35. c'mon over and do the twist / overdo it, and have a fit
  36. love you so much, you make me sick /  c'mon over and do the twist  - Nirvana
  37.