Commit Graph

455 Commits (b65a7cc67cf74e055c1e5c4a4ee5e59c0ed26be5)

Author SHA1 Message Date
Noah Gorny 2120be9372 plugins: Fix alias-completion by using helper util
By using _bash-it-array-contains-element, we can safetly iterate over
elements in the $completions array
2021-05-15 11:42:10 +03:00
Noah Gorny 1b7448bc9d plugins: alias-completion: Revert back to read without -r 2021-04-22 20:38:30 +03:00
John Fred Fadrigalan 7b8dbd39bc
Clean alias completion plugin (#1872)
* Sort plugins/available

* Clean alias-completion plugin

* Fix shellcheck warning. SC1090

* Change shellcheck source to /dev/null for explicity

* Disable shellcheck warning SC2162
2021-04-22 01:46:50 +03:00
Bingzhang Dai 7331cd2676
Update extract.plugin.bash 2021-03-24 18:42:44 +08:00
Bingzhang Dai 399b5199b0
Update extract.plugin.bash, support to extract zip to target directory 2021-03-24 17:04:21 +08:00
Noah Gorny 75058ebf22 plugins: git: Fix git_stats
Also remove uneeded newline
2021-02-06 00:26:15 +02:00
Gurkirat Singh 5cb52fa239 fixed linting for `plugins/available/git.plugin.bash` file 2021-02-06 00:26:15 +02:00
Gurkirat Singh 77654875e5 fixed git-changelog plugin 2021-02-06 00:26:12 +02:00
Gurkirat Singh 63f9f660a9 credit given to original author 2021-02-06 00:25:33 +02:00
Gurkirat Singh 92d814b2f6 added plugin to create git changelog and formatted code 2021-02-06 00:25:33 +02:00
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 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 046e528cc2 plugins: xterm: Fix shfmt complaints 2021-01-23 22:47:15 +02:00
buhl 29855ed1e6 Adding preexec as a vendored library
Added a vendored lib loading routine in bash-it.sh
Added documentation on how to vendor libs in bash-it
Added and fixed plugins using preexec
Added tests for two plugins
Removed the old preexec lib
2021-01-23 18:31:18 +01:00
cornfeedhobo 4044f4123c
add top-history 2021-01-15 11:57:41 -06:00
cornfeedhobo 61f727fb96
refactor all history modifications into discrete plugins 2021-01-15 11:53:28 -06:00
David Farrell e932d8371f
Add hooks to check .sh and .bash headers - Fixes #1491 (#1765)
* Add hooks to check .sh and .bash headers
* Adds hooks/ to clean_files.txt
2021-01-09 18:02:26 +02:00
cornfeedhobo 0b6ecf705d
add plugin for basher 2021-01-02 23:05:05 -06:00
Noah Gorny 1c05d71819 alias-completion: Use 'command rm' instead of rm to avoid aliases 2020-12-14 01:25:58 +02:00
Ira Abramov 3a1283dad5 Fix EOF 2020-10-29 19:57:14 +02:00
Ira Abramov c42e3e8b21 Removed trailing whitespaces 2020-10-29 19:57:14 +02:00
Ira Abramov b82a827ae6 Fix the commandline for gifski 2020-10-15 09:19:13 +03:00
Noah Gorny 92a1310bc2 Remove deprecated and unused gh completion/plugin 2020-10-10 02:54:58 +03:00
Noah Gorny 91b6561e93 gitstatus: Add informative warning in case dir is not found 2020-09-05 22:52:19 +03:00
cornfeedhobo 6b66fbf88c
clean up jenv to follow the newer pattern 2020-07-30 07:50:35 -05:00
Nils Winkler 43ef48544d
Merge pull request #1627 from NoahGorny/fix-alias-completion-plugin
plugins: Fix quotes around prec_word agruments
2020-07-15 08:54:56 +02:00
Nils Winkler f8d1a1c2d7
Merge pull request #1642 from cornfeedhobo/projects-logging
Projects logging
2020-07-13 11:11:35 +02:00
Nils Winkler 68cd78db29
Merge pull request #1639 from cornfeedhobo/cleanup-fzf-plugin
Minor cleanups to fzf plugin
2020-07-13 10:10:30 +02:00
cornfeedhobo 67d359d615
attempt to simplify the description 2020-07-12 16:21:14 -05:00
cornfeedhobo cf47e1f93e
nit pick spacing 2020-07-12 12:37:00 -05:00
cornfeedhobo ca409b699d
minor cleanups to fzf plugin 2020-07-12 12:33:29 -05:00
cornfeedhobo 1c06c0ab61
cleanup node plugin, and make it play nice with nodenv 2020-07-08 11:32:12 -05:00
Noah Gorny a224d65f5b plugins: Fix quotes around prec_word agruments 2020-06-24 15:11:49 +03:00
Noah Gorny a697fd2c53 plugins: Tidy gitstatus plugin comments and code 2020-06-22 14:57:06 +03:00
Noah Gorny d7aebe17a3 plugins: Rename SCM_GIT_GITSTATUS_PLUGIN_SH_LOC to SCM_GIT_GITSTATUS_DIR
Also fix the destructor in case plugin did not load as expected
2020-06-22 14:57:06 +03:00
Noah Gorny 3eac73f613 plugins: Rename gitstatusd plugin to gitstatus 2020-06-22 14:57:05 +03:00
Noah Gorny 6294797986 Rename SCM_GIT_GITSTATUSD_LOC to SCM_GIT_GITSTATUSD_PLUGIN_SH_LOC 2020-06-22 14:56:13 +03:00
Noah Gorny 1143bb8ddf plugins: Add disable callback for gitstatusd 2020-06-22 14:56:13 +03:00
Noah Gorny 5d14030591 plugins: Add gitstatud plugin 2020-06-22 14:55:25 +03:00
patricknraanes 2a05292cda Fix 2020-05-22 13:10:17 +02:00
cornfeedhobo e7e9d04628
use || to silence exit 1 properly and quit fasd init 2020-05-19 16:59:47 -05:00
Nils Winkler 912d0b88d5
Merge pull request #1602 from cornfeedhobo/add-fasd-plugin
Add fasd plugin
2020-05-19 09:32:12 +02:00
Nils Winkler 0122497e6c
Removed VS Code Plugin, since VS Code provides the `code` command out of
the box now.
2020-05-13 10:25:36 +02:00
Nils Winkler ec384be4be
Remove echo when a dead SSH Agent PID is found
This case can be safely ignored, no need to print a message for that.

Fixes #1579
2020-05-02 14:46:05 +02:00
Rick Rezinas 4835f1905e fix for issue #1418 2020-04-27 21:22:23 -07:00
Ralph Gutmann 306be4dd4f (minor) options fix 2020-04-21 18:34:28 +02:00
Ralph Gutmann ce160ff314 added tar extract-directory creation and usage (also removal of unnecessary recursion where appropriate) 2020-04-21 18:12:56 +02:00
Uco Mesdag dfeb72d6aa
Added function metadata and bash version check 2020-04-13 13:35:52 +02:00
Uco Mesdag e73f6dbc62
Reworded the about 2020-04-13 02:37:24 +02:00