John D Pell
5fcd16e6cf
lib/utilities: `shfmt`
...
My apologies to future `git blame` hunters ♥
2021-09-23 13:11:03 -07:00
John D Pell
8cf24f19a2
lib/utilities: lint `_bash-it-component-cache-file()`
2021-09-23 13:11:03 -07:00
John D Pell
b3fd8aada8
lib/utilities: lint `_bash-it-component-help`
2021-09-23 13:11:03 -07:00
John D Pell
0a3a019047
lib/utilities: use `_bash-it-grep`
...
Alsö, lose a spurious `cat`
2021-09-23 13:11:03 -07:00
John D Pell
22ea7d34bc
lib/utilities: fix `_bash-it-grep()`
...
1. Executing `'/usr/bin/grep'` does *not* return the path to grep...
2. use `type -p` instead of external binary `which`.
3. Simplify parameter definition.
4. Why was there a space after `%s`?
2021-09-23 13:11:03 -07:00
John D Pell
120dee2569
lib/utilities: fix `_bash-it-component-list-disabled()`
...
Use fewer subprocesses, return newline-delimited instead of space-delimited, and use `sort -u` instead of `uniq | sort`
2021-09-23 13:11:03 -07:00
John D Pell
2391ac77c4
lib/utilities: fix `_bash-it-component-list-enabled()`
...
Use fewer subprocesses, return newline-delimited instead of space-delimited, and use `sort -u` instead of `uniq | sort`
2021-09-23 13:11:03 -07:00
John D Pell
e599a9561c
lib/utilities: fix `_bash-it-component-list-matching()`
...
Use `sort -u` instead of `sort | uniq`
2021-09-23 13:11:03 -07:00
John D Pell
91b4d5a0a4
lib/utilities: fix `_bash-it-component-list()`
...
Use fewer subprocesses and return newline-delimited, not space-delimited.
2021-09-23 13:11:03 -07:00
John D Pell
bf96d01b11
lib/utilities: fix `_bash-it-array-dedup()`
...
Use fewer subprocesses and newline-delimited not space-delimited.
2021-09-23 13:11:03 -07:00
John D Pell
fe102ff505
lib/utilities: fix `_bash-it-get-component-type-from-path()`
...
Account for plugins with names that contain periods.
2021-09-23 13:11:03 -07:00
John D Pell
44ddd3936d
lib/utilities: shellcheck
...
SC2059
2021-09-23 13:11:03 -07:00
Noah Gorny
d6c4c0cc88
Merge pull request #1960 from gaelicWizard/alias-vim
...
aliases/vim: simplify code flow
2021-09-23 13:50:57 +03:00
John D Pell
6e2e945771
aliases/vim: simplify code flow
2021-09-22 13:21:16 -07:00
Noah Gorny
8c697715eb
Merge pull request #1938 from gaelicWizard/_command_exists
...
Use `_command_exists` everywhere
2021-09-20 14:56:45 +03:00
Noah Gorny
4700d7bf05
Merge pull request #1935 from gaelicWizard/next
...
Remove Executable Bit
2021-09-20 14:49:46 +03:00
Noah Gorny
4984d7adc8
Merge pull request #1834 from NoahGorny/lazily-load-pip
...
completion: pip: Only invoke pip when trying to complete it
2021-09-20 14:47:41 +03:00
John D Pell
fb6e05d915
completions/sqlmap: use `_command_exists`
...
Addresses bash-it/bash-it#1632
2021-09-19 21:58:48 -07:00
John D Pell
8a03f451b2
lib/helpers: simplify `_command_exists()` and `_binary_exists()`
...
Remove subshell and just use a regular `if`
2021-09-19 21:58:48 -07:00
John D Pell
a2e32f37c5
theme/dulcie: use `_command_exists`
2021-09-19 21:58:48 -07:00
John D Pell
eabdf41b83
lib/theme: use `_command_exists`
2021-09-19 21:58:48 -07:00
John D Pell
8e9438d715
completion/hub: use `_command_exists`
2021-09-19 21:58:48 -07:00
John D Pell
699720fe8b
completion/docker-compose: use `_command_exists`
2021-09-19 21:58:48 -07:00
John D Pell
679d8b10b6
completion/gradle: use `_command_exists`
2021-09-19 21:58:48 -07:00
John D Pell
0ad1af8306
aliases/apt: use `_command_exists`
2021-09-19 21:58:48 -07:00
John D Pell
88d66bbfca
aliases/curl: use `_command_exists`
2021-09-19 21:58:48 -07:00
John D Pell
6618457f9e
aliases/general: use `_command_exists`
2021-09-19 21:58:48 -07:00
John D Pell
699d893bef
completion/awscli: use `_command_exists`
2021-09-19 21:58:48 -07:00
John D Pell
dca96e0c39
completion/consul: use `_command_exists`
2021-09-19 21:58:48 -07:00
John D Pell
bb555aefbf
completion/pew: use `_command_exists`
2021-09-19 21:58:48 -07:00
John D Pell
ef0c64322f
completion/travis: use `_command_exists`
2021-09-19 21:58:48 -07:00
John D Pell
c98424308a
plugins/direnv: use `_command_exists`
2021-09-19 21:58:48 -07:00
John D Pell
b038ea5869
plugins/nodenv: use `_command_exists`
2021-09-19 21:58:48 -07:00
John D Pell
f0179c79ce
plugins/plenv: use `_command_exists`
2021-09-19 21:58:48 -07:00
John D Pell
a31145335e
plugins/pyenv: use `_command_exists`
2021-09-19 21:58:48 -07:00
John D Pell
cff6f3464a
plugins/rbenv: use `_command_exists`
2021-09-19 21:58:48 -07:00
John D Pell
b14bb4735e
plugins/ruby: use `_command_exists`
2021-09-19 21:58:48 -07:00
John D Pell
ccd8b52e89
plugins/virtualenv: use `_command_exists`
2021-09-19 21:58:48 -07:00
John D Pell
c29eb16dfc
completion/git_flow: use `_command_exists`
2021-09-19 21:58:48 -07:00
John D Pell
5eccc59d27
completion/git_flow_avh: use `_command_exists`
2021-09-19 21:58:48 -07:00
John D Pell
757a5bf25b
aliases/vim: use `_command_exists`
2021-09-19 21:58:48 -07:00
John D Pell
cace3a591d
main: use `_command_exists`
...
Addresses bash-it/bash-it#1632
2021-09-19 21:58:48 -07:00
John D Pell
8e169388d2
completions/laravel: use `_command_exists`
...
Addresses bash-it/bash-it#1632
2021-09-19 21:58:48 -07:00
John D Pell
e2915df1e5
completions/wpscan: use `_command_exists`
...
Addresses bash-it/bash-it#1632
2021-09-19 21:58:48 -07:00
John D Pell
de58fdd73f
plugins/autojump: use `_command_exists`
...
Addresses bash-it/bash-it#1632
2021-09-19 21:58:48 -07:00
John D Pell
39d6488c6b
plugins/base: use `_command_exists`
...
Addresses bash-it/bash-it#1632
2021-09-19 21:58:48 -07:00
John D Pell
3e2ec1232d
plugins/hub: use `_command_exists`
...
Addresses bash-it/bash-it#1632
2021-09-19 21:58:48 -07:00
John D Pell
635e5488ba
plugins/jump: use `_command_exists`
...
Addresses bash-it/bash-it#1632
2021-09-19 21:58:47 -07:00
John D Pell
e701660ff1
plugins/node: use `_command_exists`
...
Addresses bash-it/bash-it#1632
alsö, quote variable, use `[[`, &c.
2021-09-19 21:54:21 -07:00
John D Pell
9378a8318f
plugins/nvm: use `_command_exists`
...
Addresses bash-it/bash-it#1632
alsö, quote variable, &c.
2021-09-19 21:54:00 -07:00