Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Directory and command name conflicts
- X-seq: zsh-workers 32502
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Kenzie Togami <ket1999@xxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: Directory and command name conflicts
- Date: Tue, 18 Mar 2014 23:42:54 -0700
- In-reply-to: <CAHPNGST0yd-y1979yKYX=T5Vvs6OLXypn6-ciit-z1pj-qSA6w@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAHPNGST0yd-y1979yKYX=T5Vvs6OLXypn6-ciit-z1pj-qSA6w@mail.gmail.com>
On Mar 18, 10:27pm, Kenzie Togami wrote:
}
} zsh tries to be helpful with cd'ing by checking to see if the command you
} fired is a directory, and cd's there automagically.
It does that only if you have the AUTO_CD option set.
} However, it doesn't check to see if there is a command first.
Yes, it does, but:
} So, in my case, I had just installed gradle but had a folder called
} gradle so it would always open the folder and not launch gradle.
When you install a new binary, you have to tell zsh to reload its
lookup table of command names by giving the command:
rehash
Thereafter it will find the command gradle before the directory gradle.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author