Commit Graph

3229 Commits (e690f21e4ef00321caa179b3ff6aca21d264bdf7)

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
Noah Gorny 293d86771a
Merge pull request #1779 from NoahGorny/deprecate-docker-machine
docker-machine: Deprecate both plugin and completion file
2021-01-29 16:48:07 +02:00
Noah Gorny e8dc0f7434 deprecation: Replace errors with warnings
Deprecated component is not an error, but instead should be a warning to
the user
2021-01-29 16:06:53 +02:00
Noah Gorny 2500fe7dda docker-machine: Deprecate both plugin and completion file 2021-01-29 16:06:51 +02:00
Noah Gorny 1ce93fd60e
Merge pull request #1795 from NoahGorny/cleanup/lerna-completions
formatted lerna completion and used helper function
2021-01-29 01:27:16 +02:00
Noah Gorny b6d95c71ce completion: lerna: Add shellcheck ignore directive 2021-01-28 20:53:34 +02:00
Gurkirat Singh 69e5a28ed3 formatted lerna completion and used helper function 2021-01-28 20:53:34 +02:00
Noah Gorny 28b2a2ba2b
Merge pull request #1797 from NoahGorny/cleanup/npm-completions
formatted npm completion and used helper function
2021-01-28 19:34:45 +02:00
Gurkirat Singh 3d3322d0c9 formatted npm completion and used helper function 2021-01-28 19:23:56 +02:00
Noah Gorny 6fb9379f92
Merge pull request #1796 from NoahGorny/cleanup/minikube-completions
formatted minikube completion and used helper function
2021-01-28 19:22:23 +02:00
Gurkirat Singh 645054a8c4 formatted minikube completion and used helper function 2021-01-28 19:18:36 +02:00
Noah Gorny 868d64ebb8
Merge pull request #1793 from NoahGorny/cleanup/kubectl-completions
formatted kubectl completion and used helper function
2021-01-28 19:16:51 +02:00
Gurkirat Singh 202531321d formatted kubectl completion and used helper function 2021-01-28 18:57:00 +02:00
Noah Gorny 253e87e4a2
Merge pull request #1792 from NoahGorny/cleanup/kontena-completion
formatted kontena completion and used helper function
2021-01-28 18:55:14 +02:00
Gurkirat Singh d4bf4e6a89 formatted kontena completion and used helper function 2021-01-28 18:32:51 +02:00
Noah Gorny 0748b3085e
Merge pull request #1799 from NoahGorny/cleanup/jungle-completions
formatted jungle completion and used helper function
2021-01-28 18:16:24 +02:00
Gurkirat Singh 714bf84528 formatted jungle completion and used helper function 2021-01-28 18:10:25 +02:00
Noah Gorny 391ce6e91f
Merge pull request #1802 from NoahGorny/cleanup/gem-completions
formatted gem completion
2021-01-28 18:07:51 +02:00
Noah Gorny 42695c22d0 completion: gem: Fix completion file 2021-01-28 17:55:51 +02:00
Gurkirat Singh a8695edc8f formatted gem completion 2021-01-28 17:55:50 +02:00
Noah Gorny 71c0c06a78
Merge pull request #1798 from NoahGorny/cleanup/pip-completions
cleanup/pip completions
2021-01-28 17:54:59 +02:00
Noah Gorny 5df1e653d9 completion: pip: Lint all pip files and clarify comment 2021-01-28 17:46:22 +02:00
Gurkirat Singh 7959acddd9 formatted pip pip3 and pipenv completion and used helper functions 2021-01-28 17:45:06 +02:00
Noah Gorny c2d971f20e
Merge pull request #1801 from NoahGorny/cleanup/gh-completions
cleanup/gh completions
2021-01-28 17:44:21 +02:00
Noah Gorny adc77bb622 completion: Lint github-cli completion and use completion_exists 2021-01-28 17:40:35 +02:00
Noah Gorny 2b66100c47 helpers: Add _completion_exists helper 2021-01-28 17:40:20 +02:00
Gurkirat Singh 759cdd5a6d formatted github-cli completion 2021-01-28 17:40:20 +02:00
Noah Gorny 8969f018a4
Merge pull request #1800 from NoahGorny/cleanup/helm-completions
formatted helm completion and used helper function
2021-01-28 17:36:23 +02:00
Gurkirat Singh 9915f85e8b formatted helm completion and used helper function 2021-01-28 17:30:26 +02:00
Noah Gorny 94a9c639c7
Merge pull request #1803 from NoahGorny/cleanup/gcloud-completions
cleanup/gcloud completions
2021-01-28 17:28:12 +02:00
Noah Gorny 067149725d completion: Add about-completion to gcloud 2021-01-28 17:18:52 +02:00
Gurkirat Singh ba5700e555 formatted gcloud completion and used helper function 2021-01-28 17:18:51 +02:00
Noah Gorny 8dfc4cee20
Merge pull request #1804 from NoahGorny/cleanup/docker-completions
completion: Lint docker completion and add about-completion
2021-01-28 17:17:55 +02:00
Noah Gorny 2e3cf0b3c0 completion: Lint docker completion and add about-completion 2021-01-28 17:03:25 +02:00
Noah Gorny 5b51842b54
Merge pull request #1805 from NoahGorny/bugfix/consul-completions
formatted consul completion and used helper function
2021-01-28 16:56:10 +02:00
Gurkirat Singh 846a576978 formatted consul completion and used helper function 2021-01-28 16:35:55 +02:00
Noah Gorny 284819e718
Merge pull request #1806 from NoahGorny/cleanup/conda-completions
formatted conda completion and used helper function
2021-01-28 16:34:51 +02:00
Gurkirat Singh f9bc244718 formatted conda completion and used helper function 2021-01-28 16:27:34 +02:00
Noah Gorny 2c429e5bb1
Merge pull request #1809 from NoahGorny/cleanup/awless-completions
formatted awless completion and used helper function
2021-01-28 16:24:33 +02:00
Gurkirat Singh b93ac7785c formatted awless completion and used helper function 2021-01-28 16:19:48 +02:00
Noah Gorny ef110e167c
Merge pull request #1808 from NoahGorny/cleanup/brew-completions
formatted brew completion
2021-01-28 16:19:09 +02:00
Noah Gorny 37a7fac128 completion: brew: Add shellcheck ignore directives 2021-01-28 16:09:02 +02:00
Gurkirat Singh 1d569573da formatted brew completion 2021-01-28 16:09:00 +02:00
Noah Gorny 0d0fde9904
Merge pull request #1813 from NoahGorny/improve-test-helper
test: helper: cite plumbing metadata
2021-01-28 16:08:03 +02:00
Noah Gorny 25b3c96f43
Merge pull request #1817 from tiagobarros99/cleanup/modern-theme
Cleanup for modern theme
2021-01-28 12:25:07 +02:00
tiago cb5047734b retval check 2021-01-27 22:55:44 +00:00
tiago 3a846a2d47 cleanup modern theme 2021-01-27 22:55:44 +00:00
Noah Gorny 2388c74d84
Merge pull request #1776 from buhl/vendor
Add git vendor and vendor pre-exec lib
2021-01-27 23:25:30 +02:00
Noah Gorny c79d6cd609 vendor: Add init.d directory to clean_files.txt
Also fix and lint the directory.
This is our code, and as such, should be linted.
2021-01-27 23:21:14 +02:00
Noah Gorny 9b04e11bfc
Merge branch 'master' into vendor 2021-01-27 16:43:34 +02:00