开发者

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

开发者 https://www.devze.com 2022-12-18 11:55 出处:网络
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).

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

精彩评论

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