Skip to content

Go 1.10.x breaks version prompt layout #278

@spotlightishere

Description

@spotlightishere

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions