mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
Merge dbb5bb1fb2 into 99b243b9a9
This commit is contained in:
commit
8e94d7d7ee
1 changed files with 7 additions and 0 deletions
7
lib/golang.zsh
Normal file
7
lib/golang.zsh
Normal 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}"
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue