bash-it/test/plugins
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
..
alias-completion.plugin.bats test: Change alias-completion completion file to capistrano 2020-12-27 17:12:22 +02:00
base.plugin.bats Updated to https://github.com/tralston/bats-file v0.3.0 2020-04-20 09:00:52 +02:00
battery.plugin.bats Added test for the "no" energy tool case 2017-11-02 06:46:01 +01:00
cmd-returned-notify.plugin.bats Adding preexec as a vendored library 2021-01-23 18:31:18 +01:00
go.plugin.bats Ensure goenv and go play together well 2021-02-04 23:51:17 -06:00
ruby.plugin.bats Refactored test setup code 2020-04-21 08:25:40 +02:00
xterm.plugin.bats test: plugin: xterm: Use correct _command_exists invocation 2021-01-23 23:03:41 +02:00