Commit Graph

3 Commits (9566a3ec18e6e39b9457f4d79b85192a0aa0459d)

Author SHA1 Message Date
cornfeedhobo e690f21e4e
Ensure goenv and go play together well
This PR seeks to address several issues surrounding the go and goenv plugins.
The nature of goenv allows for a situation where the initial shell does not
point to a working go binary, and instead at the included shim script. The
result is that one must run reload after moving to a project directory with a
version file, however in doing so, PATH is updated, requiring they exit the
shell or risk lookup collisions and unexpected behavior.

This is solved by using preexec to check the version before changing
directories and restarting the shell if the version has changed. The exec
pattern is copied from _bash-it-restart, but is edited to support this specific
use case.

Additionally, tests have been uploaded and these are now being linted.
2021-02-04 23:51:17 -06:00
David Farrell f52453c643
Fix goenv plugin 2020-03-25 11:29:12 -07:00
cornfeedhobo 58d3acfd88
add goenv plugin 2020-03-10 02:03:05 -05:00