10/21 Just an idea-- what do you think of a sort of "follow" command
for tcsh or bash. Idea being
% mv foo.bar /some/really/long/dir/path
% follow # cd to /some/really/long/dir/path
\_ try replacing "follow" with
% cd !$
\_ cd !$
\_ Thanks, I knew I wasn't that creative.
\- more interesting in a global and directory-specific
history stacks. ok tnx --psb
\_ pushd !$
\_ There are also times when I do something with a file, and
then want to go to its directory, e.g.
% mv oldname /new/directory/newname
% cd /new/directory
So in t?csh, I have 'there' aliased:
there: aliased to cd `dirname !-1$`
-geordan
\_ naughty geordan. 'cd !$:h', or in this case 'cd !-1$:h'
--scotsman
\_ Not necessarily -- the reason brg and I chose this method
was for the case that /new/directory/newname might be a
directory itself. So you'd use 'there' for the general "I
want to go to the last directory I specified." -geordan
\_ wow THANKS geordan -rosario #1 fan. You got more trix?
\_ Silly rabbit, Trix are for kids. -geordan |