Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: RFE: DIR_PUSHD



At 8:37 PM +0000 2010-07-29, Paul Ackersviller wrote:
>On Thu, Jul 29, 2010 at 12:25:23PM -0700, Dave Yost wrote:
>> AUTO_CD is nice, but I find it would usually be better if
>> "executing" a directory would instead pushd to that directory.
>>
>> The obvious name for such an option would be AUTO_PUSHD, but that
>> name is already in use for something else.
>
>Perhaps I'm missing something, but does AUTO_PUSHD in conjunction with
>AUTO_CD not already do what you want?  That's what I always set, and I'm
>a happy pushd-er.

If I set both AUTO_CD and AUTO_PUSHD, then
 1. If I execute a dir, zsh will pushd to that dir, so far, so good.
 2. If I say "cd /tmp", zsh will pushd to /tmp, not desired behavior

I want only #1



Messages sorted by: Reverse Date, Date, Thread, Author