* Directory and command name conflicts
@ 2014-03-19 5:27 Kenzie Togami
2014-03-19 6:42 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Kenzie Togami @ 2014-03-19 5:27 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1: Type: text/plain, Size: 418 bytes --]
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. However, it doesn't
check to see if there is a command first. 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.
Please send me an email if there is any progress or something I should know.
--
~Kenzie Togami
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Directory and command name conflicts
2014-03-19 5:27 Directory and command name conflicts Kenzie Togami
@ 2014-03-19 6:42 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2014-03-19 6:42 UTC (permalink / raw)
To: Kenzie Togami, zsh-workers
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-19 6:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-19 5:27 Directory and command name conflicts Kenzie Togami
2014-03-19 6:42 ` Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).