1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-04-01 20:01:42 +08:00
This commit is contained in:
Grant Stephens 2026-03-19 03:09:45 -04:00 committed by GitHub
commit 5bf505a736
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

7
lib/golang.zsh Normal file
View File

@ -0,0 +1,7 @@
# 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}"
}