caiogondim / bullet-train.zsh

:bullettrain_side: An oh-my-zsh shell theme based on the Powerline Vim plugin
MIT License
2.82k stars 382 forks source link

Improve detection of Go projects #317

Open FallenWarrior2k opened 4 years ago

FallenWarrior2k commented 4 years ago

By checking for the files used by the go mod and dep tools, this should noticeably improve the detection of Go projects.

134130 commented 1 month ago

@caiogondim Can you approve this PR?

In some go projects, there is no *.go files on the root of project but go.mod file. Because the main.go files are collected in /cmd/**/main.go and the libraries are in /pkg/**/*.go

So currently, the prompt_go is not working on some go projects.

Thanks!