This commit is contained in:
Grant Stephens 2025-02-20 06:14:42 +01:00 committed by GitHub
commit 2aea335086
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

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}"
}