1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-11 00:00:06 +00:00

Merge pull request #155 from dritter/hotfix/go_version_fix

Fix for the GO segment.
This commit is contained in:
Ben Hilburn 2015-11-24 15:23:03 -08:00
commit 08a3b49d73

View file

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