matt%ucla-locus@sri-unix.UUCP (01/13/84)
From: Matthew J. Weinstein <matt@ucla-locus>
To minimize typing, I use:
alias ">" pushd
alias "<" popd
alias "." dirs
They're also quick to type, look okay symbolically, and, nicely enuf, the csh's
interpreter will allow:
>foo
since the ">" is broken off as a separate symbol.
rpw3@fortune.UUCP (01/20/84)
#R:sri-arpa:-1545900:fortune:26900018:000:848 fortune!rpw3 Jan 19 14:54:00 1984 The following aliases are VERY useful for browsing: alias go 'cd \!* ; echo "[ $cwd ]";ls -F' alias . 'cd ./\!* ; echo "[ $cwd ]";ls -F' alias .. 'cd ../\!* ; echo "[ $cwd ]";ls -F' The "echo" and/or the "ls" is optional; it's a matter of usage style. (Echo is cheap in "csh", "ls -F" is also a 4.1 thing) Note that "." tells you where you are. (Edited) example: % go / [ / ] READ_ME etc/ maint/ usr/ % . usr [ /usr ] bin/ games/ lib/ ucb/ % . lib [ /usr/lib ] aliases fontinfo/ libjobs.a* tabset/ % .. games [ /usr/games ] arithmetic* ching* mille* rogue* zork* (Using ">" and "<" for anything but re-direction seems asking for trouble...) Rob Warnock UUCP: {sri-unix,amd70,hpda,harpo,ihnp4,allegra}!fortune!rpw3 DDD: (415)595-8444 USPS: Fortune Systems Corp, 101 Twin Dolphins Drive, Redwood City, CA 94065
jab@uokvax.UUCP (01/22/84)
#R:sri-arpa:-1545900:uokvax:6100014:000:417
uokvax!jab Jan 20 22:08:00 1984
I hate to point this out, since I personally like the command
> foo
to as an alias to
pushd foo
The problem is, if you just see the command "> foo" in an example,
does that mean "create/zero the file foo" (Bourne shell) or "pushd
to the directory foo" (csh alias)?
Please don't say that "you can infer the meaning from the context of
the example" since it potentially rapes novice users.
Jeff Bowles
Lisle, IL
andree@uokvax.UUCP (01/24/84)
#R:sri-arpa:-1545900:uokvax:6100015:000:1216 uokvax!andree Jan 22 06:45:00 1984 If you really want a tool for browsing - A couple of years ago, I rewrote the Purdue help system. The result displays the current directory [options: all files/no . files, sorted/ unsorted], and asks you to pick a file. You pick a file by name/number (You have to pick files with numeric names by number). If the file is a directory, it cd's to it and starts over. It checks for various magic numbers at the beginning of files, and doesn't show you things that are probably binary (this was a HELP system to start with - if you really want to look a the file, you can say !cat !<filenumber>), but says "file is <executable|archive|whatever>". It will nroff/not nroff files that start with a ".", etc. A truly nice toy for browsing through the contens of tapes that come in the mail. As a last touch, the directory menus were written to stderr, whereas files were written to stdout, so "b directory | lpr" let you browse things to the printer. Trouble is, it was written for v6, hacked to v7, and then ported to 4.1. Someday Real Soon Now, I'll drag it out and rewrite it to 4.2, with hooks for 4.1/Unix V. If you're interested in copies, let me know. I'll do something about getting them out when I fix it. <mike