Commit Graph

3938 Commits (8bedbe47a7808fa302a406e6a7a226abb6eb4808)

Author SHA1 Message Date
Noah Gorny 9dece7fe58
Merge pull request #2105 from gaelicWizard/bats/upower
plugin/battery: fix handling of multiple batteries with `upower`
2022-03-04 20:58:17 +02:00
Noah Gorny 49649c5f0c
Merge pull request #2028 from gaelicWizard/plugin/base
lib/appearance: export `$CLICOLOR` instead of `$LSCOLOR`
2022-03-04 20:50:33 +02:00
Noah Gorny 6a53066b05
Merge pull request #2077 from Console-Utils/feature/issue-forms
Upgrade to GitHub issue forms
2022-03-04 20:49:54 +02:00
Noah Gorny 53e5965f2d
Merge pull request #2038 from gaelicWizard/theme/base
lib/theme: `shfmt`, `shellcheck`, and some cleanup
2022-03-04 20:49:24 +02:00
John D Pell 999b787c92 Close #2082 2022-03-04 00:07:35 -08:00
John D Pell 0286a50fcd lib/appearance: export `$CLICOLOR` instead of `$LSCOLOR`
Alsö, since the *value* of `$CLICOLOR` is not used anywhere, overload it to count the number of colors available for use elsewhere.
2022-03-03 23:58:55 -08:00
John D Pell f7cba27f10 lib/appearance: `shellcheck` && `shfmt` 2022-03-03 23:58:55 -08:00
John D Pell 029e53a433 plugin/battery: fix handling of multiple batteries with `upower` 2022-03-03 23:45:40 -08:00
John D Pell 6d422f17e4 Revert dc380e9ed6 2022-03-03 23:33:05 -08:00
John D Pell dc380e9ed6 test/battery: fix tests… 2022-03-03 23:14:33 -08:00
John D Pell 6734baf950 test/base: lose old TravisCS skip 2022-03-03 23:02:29 -08:00
John D Pell df87b41635 lib/theme: use `_command_exists()` in `rbenv_version_prompt()` 2022-03-03 22:54:09 -08:00
John D Pell 7762aa687a lib/theme: `local hg_root` in `hg_prompt_vars()` 2022-03-03 22:54:09 -08:00
John D Pell c9efc161ff lib/theme: improve performance of `scm()`
- Don't invoke the source control utility when all we want to know is if we're somewhere inside the repository; use `_bash-it-find-in-ancestor()`.
2022-03-03 22:54:09 -08:00
John D Pell d86a182b6e lib/theme: export `$LS_COLORS` et al 2022-03-03 22:54:09 -08:00
John D Pell c6ac9109d7 lib/theme: parameter cleanup
Improve handling of parameters by adding defaults (often blank).

Alsö, eliminate newlines from `echo` in many places.
2022-03-03 22:54:09 -08:00
John D Pell 2b3af0d8c9 lib/theme: eliminate a lot of subshells
A lot of useless `echo`s in here.
2022-03-03 22:54:09 -08:00
John D Pell ac0d91b682 lib/theme.githelpers: remove dead code
Five years deprecation is plenty warning.
2022-03-03 22:54:09 -08:00
John D Pell 1d73537dbf lib/theme: `shfmt` && `shellcheck`
My apologies to future `git blame` hunters ♥

Use the "short" host name by default (`\h`), not the fully qualified domain name (`\H`)...

lib/theme: don't redefine battery_char()

Combine the two definitions for `battery_char()` so the second one doesn't just overwrite the first one. Do one or the other, not both.

Don't evaluate if `battery_percentage()` is available at load time, evaluate it at run time.

Don't run `date` for `$THEME_TIME_FORMAT`, use `\D{fmt}`.
2022-03-03 22:54:09 -08:00
John D Pell 6bacd5fb1c lib/githelpers: `shfmt` && `shellcheck`
My apologies to future `git blame` hunters ♥
2022-03-03 22:54:08 -08:00
John D Pell fbc5d0a5af lib/p4helpers: `shfmt`
My apologies to future `git blame` hunters ♥
2022-03-03 22:53:13 -08:00
John D Pell 0e0e0d3035 lib/theme: Fix a *few* SC2154
These variables are referenced by themes already linted.
2022-03-03 22:53:13 -08:00
John D Pell a9dda3d358 test/preexec: adopt newly revamped `setup()` 2022-03-03 22:43:17 -08:00
John D Pell 0d55a2406c test/base: adopt newly revamped `setup()` 2022-03-03 22:43:17 -08:00
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