Pushd/Popd shorthand - (nf)
rpw3 at fortune.UUCP
rpw3 at fortune.UUCP
Fri Jan 20 10:09:47 AEST 1984
#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
More information about the Comp.unix
mailing list