John D Pell
45aeb86c21
plugin/osx-timemachine: abuse `$SUDO_COMMAND`
...
Use `$SUDO_COMMAND` as a back-channel to `ssh-askpass` to set a reasonable title if it pops up.
2022-01-01 17:50:22 -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
caa0d48c60
plugin/osx: move `$OSTYPE` check to top of file
2022-01-01 17:50:22 -08:00
John D Pell
db9027989d
plugin/osx: remove `dock-switch()`
...
...it hasn't worked in *years*
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
dc5c9e107c
plugin/man: simplify
...
Don't overwrite variables that the user has already set.
plugins/man: unbound `$LESS`
2022-01-01 17:49:45 -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
8b308df939
plugin/dirs: use `$BASH_IT_DIRS_BKS.new` instead of `~/.dirs1`
2022-01-01 17:49:15 -08:00
John D Pell
71b4f3c1bc
plugin/dirs: `shfmt` && `shellcheck`
2022-01-01 17:49:15 -08:00
John D Pell
d8e7b173b5
plugins/dirs: use XDG_STATE_HOME
...
Locate the bookmarks file in $XDG_STATE_HOME, and migrate an existing file from the old location if it exists.
2022-01-01 17:49:15 -08:00
John D Pell
4abafc55ef
tests: quote paths
2022-01-01 17:46:11 -08:00
Noah Gorny
2e51e92699
Merge pull request #2000 from gaelicWizard/lint
...
Revert most of "Fix linting errors that snuck in."
2022-01-01 23:01:09 +02:00
Noah Gorny
c5d3b258ab
Merge pull request #2006 from gaelicWizard/plugin-java
...
Plugin/Java: quote path and provide useful error message
2022-01-01 22:56:21 +02:00
Noah Gorny
2dd4426a7c
Merge branch 'master' into plugin-java
2022-01-01 22:53:18 +02:00
Noah Gorny
c852360a39
Merge pull request #1977 from gaelicWizard/themes-SC2154-A
...
Themes: fix `shellcheck` (SC2154); Part A
2022-01-01 22:51:35 +02:00
Noah Gorny
f534505357
Merge pull request #1969 from gaelicWizard/plugin-jekyll
...
Plugin/jekyll: lint and stuff
2022-01-01 22:43:36 +02:00
Noah Gorny
475952dbb9
Merge pull request #1928 from gaelicWizard/defaults
...
Refactor completion for `defaults` command
2022-01-01 16:46:14 +02:00
John D Pell
33df3a2bcd
plugin/java: show message on missing *or* blank
2021-12-30 22:35:34 -08: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
Kostas Giapis
45e8c4e3cd
Handle `restart` completions
2021-12-30 17:03:23 +02:00
Kostas Giapis
2a2cc72541
Make parameter truncation greedy
2021-12-30 17:01:22 +02:00
Kostas Giapis
1c03eb6b3b
Fix checking whether fzf is already in PATH
2021-12-28 06:54:25 +02:00
John D Pell
64f75ce22d
Revert most of "Fix linting errors that snuck in."
...
This reverts commit 2c8ee40566 .
- _Shellcheck_ documentation for the [`source-path`]( https://github.com/koalaman/shellcheck/wiki/Directive#source-path ) directive indicates this is correct usage. We're `source`ing the `bash-preexec.sh` file from inside the `vendor/github.com/rcaloras/bash-preexec` directory. If we used the [`source`]( https://github.com/koalaman/shellcheck/wiki/Directive#source ) directive, then the full complete path to the file itself would need to be specified.
- Fix `disable=1090` to `disable=SC1090` and remove duplicate lines since this `shellcheck` directive will apply to the entire if-ladder.
- Disabling `SC2154` is almost never appropriate. In this case, several `_git_bash_completion*` variables are expressly assigned in this file, so there is no "unknown" to ignore.
Aside: the `${!_git_bash_completion@}` construct will expand to all variables starting with the previx `_git_bash_completion`, so this line is just a shorthand way to clear all our variables concisely without forgetting any.
2021-12-27 16:18:20 -08:00
John D Pell
3fe9c8d6bc
plugin/jekyll: try to shorten the flow
...
Alsö, use `pushd`/`popd` instead of `builtin cd`.
Alsö, SC2153
2021-12-27 12:22:42 -08:00
John D Pell
e38eeefc5f
plugin/jekyll: second `shellcheck` pass
2021-12-27 12:22:42 -08:00
John D Pell
c0aad51afd
main: move Jekyll stuff to plugins/jekyll
...
If the user doesn't load the Jekyll plugin, then don't load any Jeykll stuff.
2021-12-27 12:22:42 -08:00
John D Pell
1c3a7ffdb3
plugin/jekyll: `shfmt` && `shellcheck`
...
Use bashisms, remove suplerfous variable, use parameter default value replacement
2021-12-27 12:22:42 -08:00
John D Pell
2991aa66ca
theme/powerline: SC2154, SC2248
2021-12-27 12:20:46 -08:00
John D Pell
c323357067
theme/purity: SC2154
...
Handle all unbound parameters, even colors!
2021-12-27 12:20:46 -08:00
John D Pell
e560e88814
theme/pure: SC2154
...
Handle all unbound parameters, even colors!
2021-12-27 12:20:46 -08:00
John D Pell
895102edeb
theme/codeword: SC2154
...
Handle all unbound parameters, even colors!
2021-12-27 12:20:46 -08:00
John D Pell
4bc83d7940
theme/bira: SC2154
...
Handle all unbound parameters, even colors!
2021-12-27 12:20:46 -08:00
John D Pell
2c14a18483
theme/bakke: fix SC2154
...
Handle all unbound parameters, even colors!
2021-12-27 12:20:46 -08:00
John D Pell
c769234350
theme/90210: fix SC2154
...
Handle all unbound parameters, even colors!
2021-12-27 12:20:46 -08:00
John D Pell
6a41dbc3f6
Add "bash-progcomp" from " https://github.com/gaelicWizard/bash-progcomp@v2.0.1 "
...
git-vendor-name: bash-progcomp
git-vendor-dir: vendor/github.com/gaelicWizard/bash-progcomp
git-vendor-repository: https://github.com/gaelicWizard/bash-progcomp
git-vendor-ref: v2.0.1
2021-12-27 11:36:38 -08:00
John D Pell
fdb50aec6b
Remove defaults completion v1
2021-12-27 11:36:38 -08:00
Ron Green
559cde151b
feat(git): make auto squashing non-interactive
2021-12-22 18:49:39 +02:00
Noah Gorny
84383cb46b
Merge pull request #1994 from Novite5/master
...
"pipenv --completion" is obsoleted
2021-12-18 21:52:29 +02:00
Noah Gorny
8edbdf9bbd
Merge pull request #1992 from davidpfarrell/dirs
...
plugin(dirs): remove shopt -s cdable_vars
2021-12-18 21:52:18 +02:00
Novite5
1065d98dbe
"pipenv --completion" is obsoleted
...
Reference: https://buildmedia.readthedocs.org/media/pdf/pipenv/latest/pipenv.pdf 4.2.18 Shell Completion
2021-12-12 18:11:21 +08:00
Kostas Giapis
476159eab9
Use bash features as much as possible
2021-12-11 17:48:33 +02:00
Kostas Giapis
15fe122c1f
Make more variables local
2021-12-03 06:31:28 +02:00
Kostas Giapis
4d821338a3
Double quote some variables
2021-12-03 06:31:28 +02:00
Kostas Giapis
9c4f7773b9
Improve performance for the rest of bash-it completions
2021-12-03 06:31:16 +02:00
Kostas Giapis
5b29d3c6e6
Improve performance of 'bash-it enable' completions
2021-12-03 06:29:39 +02:00
David Farrell
1bc56b1d8f
plugin(dirs): remove shopt -s cdable_vars
2021-12-02 13:42:29 -08:00
noviicee
51042c2cf0
added alias ls='ls -F'
2021-12-02 23:49:58 +05:30
cornfeedhobo
1882f50aa1
Merge pull request #1982 from cornfeedhobo/align-history-plugins
...
Wholesale cleanup of all history plugins
2021-12-02 09:44:09 -06:00
cornfeedhobo
2c8ee40566
Fix linting errors that snuck in.
2021-12-02 09:14:01 -06:00
cornfeedhobo
bdb5289660
Wholesale cleanup of all history plugins
...
- remove the use of redundant cite
- minor cleanups to history.plugin.bash
- set explicit load orders for history-search and history-substring-search
- add new plugin history-eternal
- replace superfluous trap for managing HISTTIMEFORMAT changes
2021-12-02 09:13:56 -06:00