开发者

zsh doesn't complete local dir name when trying to execute local executable

I have a local directory with executable in it (e.g. foo_dir/bin/bar). I typed "foo", but foo_dir wasn't suggested. What cames out is other program in $PATH (such as bootlogd).

How should I开发者_JS百科 config my zshrc? Thanks


I think adding "." to your $PATH variable will fix this issue. By default $PATH contains standard bin directory i.e /usr/bin, /bin, /usr/local/bin.


I found a workable solution, by "setopt autocd", but the side effect is when executing some directory, you'll cd into it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜