Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions bullet-train.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ if [ ! -n "${BULLETTRAIN_PROMPT_ORDER+1}" ]; then
time
status
custom
context
dir
screen
perl
Expand Down Expand Up @@ -536,7 +535,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 |cut -d ' ' -f3 | cut -c '3-')"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could get go version with only awk

go version | awk '{print substr($3, 3)}'

fi
fi
}
Expand Down