elan icon indicating copy to clipboard operation
elan copied to clipboard

Runing elan-init.sh under msys2 makes elan available via cmd, but not via msys2.

Open kim-em opened this issue 3 years ago • 2 comments

The elan-init.sh script doesn't work as I would have expected when run inside msys2. It installs everything (and sets up the PATH) in the Windows home directory C:\Users\scott\.elan, rather than the msys2 home directory C:\msys64\home\scott\.elan.

As a consequence (even after restarting msys2, lean isn't found.

This isn't terrible, just unexpected?

kim-em avatar Oct 04 '21 07:10 kim-em

(Our mathlib3 instructions for windows currently advise against using msys2, and instead using git bash, so presumably this hasn't been affecting people.)

kim-em avatar Oct 04 '21 07:10 kim-em

I think the installation location is fine, but it would be nice if it also updated the msys2 shells. Not sure if msys2 sets any environment variables we could use to detect that and locate /etc.

Kha avatar Oct 04 '21 09:10 Kha