1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2026-02-13 04:40:59 +01:00
Files
oh-my-zsh/lib/golang.zsh
2020-05-14 10:08:10 +01:00

8 lines
252 B
Bash

# get the golang version
function go_prompt_info() {
local go_prompt
go_prompt=$(go version | awk '{ print substr($3, 3) }')
[[ "${go_prompt}x" == "x" ]] && return
echo "${ZSH_THEME_GO_PROMPT_PREFIX}${go_prompt}${ZSH_THEME_GO_PROMPT_SUFFIX}"
}