Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go 1.10.x breaks version prompt layout #278

Closed
spotlightishere opened this issue May 6, 2018 · 2 comments
Closed

Go 1.10.x breaks version prompt layout #278

spotlightishere opened this issue May 6, 2018 · 2 comments

Comments

@spotlightishere
Copy link

The introduction of Go 1.10.x gave a second digit to the version number.

prompt_segment $BULLETTRAIN_GO_BG $BULLETTRAIN_GO_FG $BULLETTRAIN_GO_PREFIX" $(go version | grep --colour=never -oE '[[:digit:]].[[:digit:]]')"

only expects one digit as shown below, causing the prompt to newline:

> go version | grep --colour=never -oE '[[:digit:]].[[:digit:]]'
1.1
0.2
@spotlightishere spotlightishere changed the title Go 1.10.x breaks version prompt Go 1.10.x breaks version prompt layout May 6, 2018
@salmanulfarzy
Copy link

Duplicate of #255, Fixed with #264

@spotlightishere
Copy link
Author

Ah, thanks. I did a terrible search beforehand it seems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants