mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-16 17:50:09 +00:00
Fix for the GO version.
This commit is contained in:
parent
1eadf5ad76
commit
351dc84320
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ prompt_dir() {
|
|||
# GO-prompt
|
||||
prompt_go_version() {
|
||||
local go_version
|
||||
go_version=$(go version 2>&1 | grep -oe "^go[0-9.]*")
|
||||
go_version=$(go version 2>&1 | sed -E "s/.*(go[0-9.]*).*/\1/")
|
||||
|
||||
if [[ -n "$go_version" ]]; then
|
||||
"$1_prompt_segment" "$0" "green" "255" "$go_version"
|
||||
|
|
Loading…
Reference in a new issue