caiogondim / bullet-train.zsh

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

Fix issue #255: use awk to get golang version #264

Open hanju-jo opened 6 years ago

hanju-jo commented 6 years ago

Fixed #255 by using awk instead of grep.

There is 5 types of version format: go1, go1.10beta1, go1.10, go1.8.5rc4, go1.9.2. So I think that getting 3rd word in $ go version command is better then using regex matching.

2018-02-18 11 17 03
embano1 commented 6 years ago

Awesome! Thx

embano1 commented 6 years ago

@caiogondim can you please have a look and merge this PR? Thx