justjanne / powerline-go

A beautiful and useful low-latency prompt for your shell, written in go
GNU General Public License v3.0
2.75k stars 269 forks source link

git ignores global config gitexcludes/.git/config/ignore #295 #296

Closed vgropp closed 3 years ago

vgropp commented 3 years ago

This fixes #295 for me. The main culprit was the init make([]string, len(env)) which added 3 zero entries to the slice which broke HOME/USERPROFILE for git status. Used USERPROFILE hack from segement-kube for windows in this case as well, as HOME is not set in gitbash/windows.

I did not find any suitable file for homeEnvName() so i added a new environment.go.