17 Mar
2005
17 Mar
'05
7:31 p.m.
I don't know of anything in zsh exactly like this, but you can just use the ~<number> syntax to refer to directories in the directory stack (I've a feeling this is standard ksh syntax too, so should work in bash too).
i.e. 'cp ~1/foo .' copies foo from the directory on the top of the stack to the current directory.
It works in bash, I just tried it. This is wonderful. Thanks for this hint! Dusty