Commit Graph

3964 Commits (master)

Author SHA1 Message Date
John D Pell f0dfe1a67f test/theme: adopt newly revamped `setup()` 2022-03-03 22:43:17 -08:00
John D Pell b686515877 test/xterm: adopt newly revamped `setup()` 2022-03-03 22:43:17 -08:00
John D Pell a36a4c4038 test/ruby: adopt newly revamped `setup()` 2022-03-03 22:43:17 -08:00
John D Pell fbf7efa1b8 test/go: adopt newly revamped `setup()` 2022-03-03 22:43:17 -08:00
John D Pell 4a9df8ec88 test/cmd-returned-notify: adopt newly revamped `setup()` 2022-03-03 22:43:17 -08:00
John D Pell 6e2e0af7f9 test/battery: adopt newly revamped `setup()` 2022-03-03 22:43:17 -08:00
John D Pell beac9c430a test/aliases: adopt newly revamped `setup()` 2022-03-03 22:43:17 -08:00
John D Pell fd91211704 test/utilities: adopt newly revamped `setup()` 2022-03-03 22:43:17 -08:00
John D Pell 629a1b0c0d test/search: adopt newly revamped `setup()` 2022-03-03 22:43:17 -08:00
John D Pell e5cd10112c test/log: adopt newly revamped `setup()` 2022-03-03 22:43:17 -08:00
John D Pell 1ddec65d56 test/helpers: adopt newly revamped `setup()` 2022-03-03 22:43:17 -08:00
John D Pell 425ef3e10a test/composure: adopt newly revamped `setup()` 2022-03-03 22:43:17 -08:00
John D Pell 2a95e983d0 test/install: adopt newly revamped `setup()`
test/uninstall: adopt newly revamped `setup()`

test/install: `local_setup_file()`
2022-03-03 22:43:17 -08:00
John D Pell c837232643 test/bash-it: adopt newly revamped `setup()` 2022-03-03 22:43:17 -08:00
John D Pell de31a308f9 test/bash_it: adopt newly revamped `setup()` 2022-03-03 22:43:17 -08:00
John D Pell fd1771d45c test/base: adopt newly revamped `setup()` 2022-03-03 22:43:17 -08:00
John D Pell cb9b999f06 BATS: de-parallelize
Run the test *files* in parallel, but not the tests *within* the files. This can be reverted after configuration (i.e., `$BASH_IT/enabled` et al) lives *outside* the repo.
2022-03-03 22:43:17 -08:00
John D Pell 014c102b71 BATS: revamp test `setup()` and `setup_test_fixture()` 2022-03-03 22:43:17 -08:00
Noah Gorny fdff1d81cd
Merge pull request #2103 from Bash-it/revert-2101-add-bashcov-report
Revert "ci: Add bashcov codecov report"
2022-03-03 22:39:47 +02:00
Noah Gorny 5c592c9a6f
Revert "ci: Add bashcov codecov report" 2022-03-03 22:37:39 +02:00
Noah Gorny 1722ea963e
ci: Add bashcov codecov report (#2101) 2022-03-03 21:37:34 +02:00
Noah Gorny be755d63af ci: Add bashcov codecov report 2022-03-02 23:44:42 +02:00
Ira Abramov be9a838015
Fix knife completion (#2098)
Co-authored-by: Ira Abramov <github@ira.abramov.org>
2022-03-01 23:22:56 +02:00
Noah Gorny 34bc37c178
Merge pull request #2061 from gaelicWizard/lib/helpers
lib/helpers: fixes, improvements, consolations, constellations, and a partridge in a pear tree
2022-03-01 23:21:27 +02:00
John D Pell 789ede9ef3 plugin/battery: fix tests 2022-02-24 12:52:26 -08:00
John D Pell 604f9b0baa Remove executable bit. 2022-02-24 12:47:22 -08:00
John D Pell 47bbc73744 lib/helpers: `_bash-it-find-in-ancestor()`
Use new `composure.sh` feature to avoid `cite()`.
2022-02-24 12:47:22 -08:00
John D Pell 5957d189ea lib/utilities: `_bash-it-component-item-is-enabled()`
- Use normal `if`/`then`
2022-02-20 12:01:05 -08:00
John D Pell fe48deda2d lib: rename `_bash-it-clean-component-cache()`
…to `_bash-it-component-cache-clean()`
2022-02-20 12:01:05 -08:00
John D Pell 6257853759 lib/utilities: use `$XDG_CACHE_HOME` properly
We should fall back to the default location, not use an entirely different one.
2022-02-20 12:01:05 -08:00
John D Pell 72829ca21d lib/utilities: `_bash-it-component-item-is-enabled()`
- required arguments
2022-02-20 12:01:05 -08:00
John D Pell ffcf8f1c94 lib/utilities: >| 2022-02-20 12:01:05 -08:00
John D Pell fbd842b2ea lib/helpers: fix extraneous quotes from `_bash-it-grep()` 2022-02-20 12:01:05 -08:00
EmilySeville7cfg df1881acfa Room for extra details for:
- bug report
- feature request
2022-02-20 18:47:44 +10:00
EmilySeville7cfg 2927f672fd More user-friendly hints in bug report 2022-02-20 18:45:08 +10:00
Noah Gorny 33bade22b7
Merge pull request #2073 from gaelicWizard/lib/preexec
Update "preexec" from "https://github.com/rcaloras/bash-preexec@master"
2022-02-19 23:56:56 +02:00
Noah Gorny 1c8ad2c1b7
Merge pull request #2096 from akinomyoga/plugin-blesh-workaround-reloader-change
bash_it.sh: source `reloader.bash` without arguments for the default enabling
2022-02-19 23:43:20 +02:00
Koichi Murase ee853670a1 bash_it: suppress a false error by shellcheck 2022-02-19 17:17:45 +09:00
Koichi Murase 41cf3cfaf2 plugin/blesh: override possible arguments inherited by callers 2022-02-19 16:34:22 +09:00
Koichi Murase e05fa477d7 bash_it: source reloader.bash without arguments for the default enabling 2022-02-19 16:34:22 +09:00
John D Pell 150f73ee50 bash-it update: show change log once 2022-02-18 03:06:17 -08:00
John D Pell 2cea663a4a lib/theme: handle undefined parameter 2022-02-18 03:06:17 -08:00
John D Pell 95353f1a98 lib/helpers: the last remnants of the `$OSTYPE` have been swept away
- Figure out which `sed` we have by checking, not guessing.
2022-02-17 20:46:28 -08:00
John D Pell ddf75f17ac lib/search: fix variable scope 2022-02-17 20:46:28 -08:00
John D Pell 35ecc260c2 lib/helpers: handle unbound parameters 2022-02-17 20:46:28 -08:00
John D Pell 31751624c0 lib/helpers: cleanup `_bash-it-profile-load-parse-profile()` a bit 2022-02-17 20:45:37 -08:00
John D Pell e7818dbaca lib/helpers: handle unbound positional parameters
Alsö, don't `pushd`/`popd` when restarting shell.
2022-02-17 20:45:37 -08:00
John D Pell 60c10004d1 lib/helpers: fix `_bash-it-component-pluralize()` 2022-02-17 20:45:27 -08:00
John D Pell 8246794a28 lib/preexec: the last remnants of the `$OSTYPE` have been swept away
- Use a POSIX-compliant/portable extended regular expression to match on word-boundaries, rather than guessing which regex library `bash` was linked against. See https://stackoverflow.com/a/12696899/555333 for explanation and code suggestion.
2022-02-16 16:10:41 -08:00
John D Pell c1943192ce lib/preexec: clarify subshell guard and comment
Rewrite comment on disabling the `DEBUG` trap in subshells, which is now handled upstream as of rcaloras/bash-preexec#26.

Alsö, fix the guard variable assignment to allow it to be overridden elsewhere (e.g., for testing).
2022-02-16 16:10:41 -08:00