John D Pell
d6555f369a
lib/preview: refactor into a function
...
This allows future use like `bash-it preview`. Alsö, allows to use `$BASH_PREVIEW` to specify a particular theme to preview instead of just doing all of them.
2022-02-07 15:27:03 -08:00
Noah Gorny
578c702ca3
Merge pull request #2055 from gaelicWizard/lib/reloader
...
lib/reloader: lint and modernize
2022-01-30 00:10:32 +02:00
Noah Gorny
2a9ee7e344
Merge pull request #2019 from gaelicWizard/lib/colors
...
lib/colors: split out metaprogramming
2022-01-30 00:10:14 +02:00
John D Pell
b8694ee140
lib/search: `shfmt`
...
My apologies to future `git blame` hunters ♥
2022-01-28 13:35:17 -08:00
John D Pell
85a77f1e46
lib/colors: Separate metaprogramming
2022-01-28 13:09:53 -08:00
John D Pell
bf4ddf5951
plugin/colors: `shfmt`
2022-01-28 13:09:00 -08:00
John D Pell
16cee1956d
lib/colors: revert #99
...
This reverts bash-it/bash-it#99 , a metaprogramming adventure in terminal color code escape computation. It was functionally reverted in bash-it/bash-it#699 ; I'm just finishing the job.
2022-01-28 13:08:50 -08:00
John D Pell
fd7b20b8d7
reloader: `shellcheck` && `shfmt`
...
Rewrite globbing per `shellcheck`'s SC2013 recommendations, and standardize whitespace.
2022-01-28 03:59:45 -08:00
Noah Gorny
0c24edae06
Merge pull request #2064 from gaelicWizard/plugin/battery
...
plugin/battery: `shellcheck`
2022-01-26 17:47:59 +02:00
John D Pell
3cb5f3f7e6
plugin/battery: `shellcheck`
2022-01-25 23:54:24 -08:00
John D Pell
7a0b353cea
lib/preexec: rename `vendor/init.d/preexec.bash`
2022-01-25 13:00:04 -08:00
Noah Gorny
2575d64deb
Merge pull request #2010 from gaelicWizard/plugin-projects
...
Plugin/projects: cleanup
2022-01-25 18:28:53 +02:00
Noah Gorny
878bbe5942
Merge pull request #2042 from gaelicWizard/completion/dotnet
...
completion/dotnet: new completion
2022-01-25 18:16:06 +02:00
Noah Gorny
035eabade6
Merge pull request #2036 from gaelicWizard/theme/norbu
...
theme/norbu: `shellcheck` && `shfmt`
2022-01-25 18:10:21 +02:00
John D Pell
b1e922ea38
theme/norbu: `shellcheck` && `shfmt`
...
# Conflicts:
# clean_files.txt
2022-01-25 00:01:27 -08:00
John D Pell
d7695d5456
completion/bash-it: `shfmt`
2022-01-24 21:41:13 -08:00
Noah Gorny
dbb3ea4736
Merge pull request #2035 from gaelicWizard/theme/pete
...
theme/pete: `shellcheck` && `shfmt`
2022-01-24 23:32:58 +02:00
John D Pell
ea2002a2e4
plugin/projects: cleanup
...
I'm deliberately leaving the possibility that one might `pjo` without a project name...
2022-01-18 11:08:51 -08:00
John D Pell
003b0ce802
lib/helpers: `shfmt`
...
My apologies to future `git blame` hunters ♥
2022-01-18 11:02:36 -08:00
Noah Gorny
973a1f9b40
Merge pull request #1958 from gaelicWizard/plugin-proxy
...
plugin/proxy: lint
2022-01-18 19:42:32 +02:00
John D Pell
77c5f8eda9
completion/dotnet: modernize
...
and `shfmt`
2022-01-12 22:39:49 -08:00
John D Pell
8e8fe69db4
theme/pete: `shellcheck` && `shfmt`
2022-01-12 13:29:40 -08:00
John D Pell
b772e6ace7
lib/log: `shellcheck` && `shfmt`
...
Alsö, fix tests to load `lib/colors` instead of `lib/appearance`...wut
Alsö, `short-circuit _has_colors()`: If we already looked up colors, and we already have them, then don't run `tput` again.
My apologies to future `git blame` hunters ♥
2022-01-09 00:49:44 -08:00
John D Pell
6e480d7a8a
plugin/proxy: `shellcheck` && `shfmt`
...
plugins/proxy: use `_command_exists()`
Alsö, quote variables, handle unbound parameters, &c.
2022-01-09 00:40:49 -08:00
Noah Gorny
f2bff34493
Merge pull request #2013 from gaelicWizard/completion/system
...
completion/system: load earlier than others
2022-01-09 01:13:23 +02:00
Noah Gorny
1fd601db7f
Merge pull request #2007 from gaelicWizard/plugin-latex
...
Plugin/LaTeX: 2009 was thirteen years ago
2022-01-09 01:11:41 +02:00
Noah Gorny
21e7c1f00c
Merge pull request #2011 from gaelicWizard/plugin-nginx
...
plugin/nginx: cleanup
2022-01-09 01:11:06 +02:00
Noah Gorny
af801cfadc
Merge pull request #2014 from gaelicWizard/plugin/gif
...
plugin/GIF: use `type -p` and lint
2022-01-09 01:10:43 +02:00
John D Pell
079652e6e7
plugin/nginx: cleanup
...
Dont overwrite user-set variable, and quote path. Local some variables, `shellcheck`, `shfmt`
2022-01-08 08:44:05 -08:00
John D Pell
2fe9e01051
plugins/latex: 2009 was 12 years ago
...
Locate the currently installed edition, instead of transpoting us back to undergrad.
2022-01-08 08:43:32 -08:00
John D Pell
ce22710e00
plugin/gif: `shfmt`
...
My apologies to future `git blame` hunters ♥
2022-01-08 08:43:17 -08:00
John D Pell
5fab574bfd
completion/system: `shfmt`
...
My apologies to future `git blame` hunters ♥
2022-01-08 08:33:16 -08:00
John D Pell
97ef5a8087
test/run: lint
2022-01-08 08:29:13 -08:00
John D Pell
da6b27166f
tests: new file `test_helper_libs.bash`
...
For testing non-core files, just `load ../test_helper_libs` after `load ../test_helper` instead of trying to guess which libs must be loaded, in which order, for testing to succeed.
`_command_exists` spews log messages, so our test log is littered with `_log_debug not found`. This fixes that too.
2022-01-08 08:29:13 -08:00
Noah Gorny
931f27ee3e
Merge pull request #2016 from gaelicWizard/plugin/python
...
plugin/python: OS detection & `shfmt`
2022-01-07 08:50:07 +02:00
Noah Gorny
2728f20354
Merge pull request #2012 from gaelicWizard/theme/essential
...
theme/essential: cleanup
2022-01-07 08:48:16 +02:00
Noah Gorny
c060eb46ea
Merge pull request #2001 from gaelicWizard/plugin-dirs
...
Plugin/dirs: use `$XDG_STATE_HOME`
2022-01-07 08:42:24 +02:00
Noah Gorny
dba610cdc8
Merge pull request #2009 from gaelicWizard/plugin-man
...
Plugin/man: Add `R` to `$LESS`
2022-01-07 08:41:41 +02:00
Noah Gorny
5d68fca7e5
Merge pull request #2008 from gaelicWizard/plugin-osx
...
Plugin/OSX: cleanup
2022-01-07 08:41:17 +02:00
Noah Gorny
48a1ff7fb4
Merge pull request #2005 from gaelicWizard/plugin-todo
...
Plugin/todo: cleanup and simplify
2022-01-07 08:40:52 +02:00
John D Pell
d1b7166358
theme/essential: `shfmt`
2022-01-03 20:45:39 -08:00
John D Pell
29216c0fd4
plugin/python: `shfmt`
...
My apologies to future `git blame` hunters ♥
2022-01-01 23:00:48 -08:00
John D Pell
c030f2108b
plugin/git-subrepo: `shellcheck`
2022-01-01 22:48:01 -08:00
John D Pell
02b57a83ef
plugins/todo: lint
...
plugin/base: use `_bash-it-component-item-is-enabled()`
2022-01-01 17:50:55 -08:00
John D Pell
03653fc141
plugins/osx-timemachine: `shellcheck` && `shfmt`
...
Use bash functionality rather than external binaries. Alsö, if $SUDO_ASKPASS is set then pass -A to sudo.
2022-01-01 17:50:22 -08:00
John D Pell
75aabd5d20
plugin/osx: `shellcheck` && `shfmt`
...
plugins/osx: dead code removal
No need for gymnastics to determine if variable had been exported priort to modification. If it was, then it still is. See man bash(1).
2022-01-01 17:50:22 -08:00
John D Pell
290aab4efe
plugins/man: Add "R" to `$LESS`
...
Otherwise, `-R` must be added on the command line or colors just won't be rendered and these variables will be ignored.
2022-01-01 17:49:45 -08:00
John D Pell
71b4f3c1bc
plugin/dirs: `shfmt` && `shellcheck`
2022-01-01 17:49:15 -08:00
Noah Gorny
2dd4426a7c
Merge branch 'master' into plugin-java
2022-01-01 22:53:18 +02:00
John D Pell
f03a89836e
plugins/java: quote path && `shfmt`
...
Provides an error message if no file is specified.
2021-12-30 20:25:19 -08:00