Skip to content

Commit

Permalink
Fix issue caiogondim#255: use awk to get golang version
Browse files Browse the repository at this point in the history
  • Loading branch information
hanju-jo committed Oct 4, 2018
1 parent cb68586 commit 7a3f3e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bullet-train.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ prompt_go() {
setopt extended_glob
if [[ (-f *.go(#qN) || -d Godeps || -f glide.yaml) ]]; then
if command -v go > /dev/null 2>&1; then
prompt_segment $BULLETTRAIN_GO_BG $BULLETTRAIN_GO_FG $BULLETTRAIN_GO_PREFIX" $(go version | grep --colour=never -oE '[[:digit:]].[[:digit:]]+')"
prompt_segment $BULLETTRAIN_GO_BG $BULLETTRAIN_GO_FG $BULLETTRAIN_GO_PREFIX" $(go version | awk '{print substr($3, 3)}')"
fi
fi
}
Expand Down

0 comments on commit 7a3f3e1

Please sign in to comment.