John D Pell
04c7424de5
completion/system: fix tests for `profile` command
2022-01-08 08:33:16 -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
e7c3263f12
completion/system: load earlier than other completions
...
I chose `325` so that it's still possible to deliberately place something *before* this component, if needed somehow.
2022-01-08 08:33:16 -08:00
John D Pell
776d0b7d37
completion/svn: rename to match prior file
...
This way, users don't need to enable "subversion" if they had already enabled "svn".
2022-01-08 08:32:37 -08:00
John D Pell
ae5131aee2
completion/subversion: load system completion
...
Load the completion script from the subversion package installed on the system, instead of bundling a copy. This addresses Bash-it/bash-it#1818 .
NOTE: If `completions/system` is enabled, then it will load this same file anyway automatically.
2022-01-08 08:32:37 -08:00
John D Pell
bb69edd795
completion/subversion: remove
...
Remove duplicate of subversion completion as it is already provided by system packages.
2022-01-08 08:32:37 -08:00
John D Pell
8a226a73f1
test/test-helper: support 'plumbing' metadata
2022-01-08 08:29:13 -08:00
John D Pell
30ca1bfba2
test/test_helper: exclude bad symlink
...
Symlink `/test_lib/bats-core/test/fixtures/parallel/suite/helper.bash` references a not-existing file, but it's in a submodule so I can't just fix it. Exclude it from `rsync` in `setup_test_fixture()`.
2022-01-08 08:29:13 -08:00
John D Pell
97ef5a8087
test/run: lint
2022-01-08 08:29:13 -08:00
John D Pell
61e1d6aec2
lib/utilities: simplify test flow
...
This subshell is...wut
2022-01-08 08:29:13 -08:00
John D Pell
c35ed44cbf
plugins/ruby: tests on Mac OS X
...
Test was failing only on Mac OS X for some reason, so refactor a little. It turned out to be due to explicitly setting `$HOME` *after* loading the plugin.
2022-01-08 08:29:13 -08:00
John D Pell
21a2198a12
test/theme: make fewer assumptions
...
Literally copying a line from the source to be tested is perhaps not the best way to test that code. 😉
That said, we do want to verify that the function was actually loaded.
TODO: actually test the function.
2022-01-08 08:29:13 -08:00
John D Pell
6030767b4e
test/theme: load colors
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
John D Pell
9dcbeec7ad
tests: test_helper already loads `composure.sh`
...
...and `cite()`s metadata
2022-01-08 08:29:13 -08:00
John D Pell
b2279b7237
tests: quote paths
2022-01-08 08:29:13 -08:00
Noah Gorny
b846c86dbb
Merge pull request #1991 from noviicee/issue-1206
...
Added alias ls='ls -F'
2022-01-07 09:10:44 +02:00
Noah Gorny
2e968c459c
Merge pull request #1989 from tsiflimagas/bashit-completions-performance
...
Bash-it completions performance improvement
2022-01-07 08:55:46 +02:00
Noah Gorny
6fc47a7671
Merge pull request #2021 from NariyasuHeseri/master
...
theme/powerline: fix error `scm: parameter not defined`
2022-01-07 08:51:00 +02: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
a538844c3b
Merge pull request #1997 from georgettica/patch-1
...
feat(git): make auto squashing non-interactive
2022-01-07 08:46:58 +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
Noah Gorny
682b51c195
Merge pull request #2015 from gaelicWizard/plugin/git-subrepo
...
plugin/git-subrepo: use `$HOME` instead of `~`
2022-01-07 08:31:49 +02:00
Nariyasu Heseri
9d8002226d
theme/powerline: fix error `scm: parameter not defined`
2022-01-06 18:44:18 +09:00
John D Pell
139baedf5d
plugin/python: Pyton 2 is dead; Long Live Python 3!
2022-01-05 13:29:35 -08:00
John D Pell
f2dcb2aff6
theme/essential: s/echo/printf/g
2022-01-03 20:45:39 -08:00
John D Pell
3695862b43
theme/essential: cleanup
...
Lose a couple of useless `echo`s/subshells.
Alsö, lose the incorrect VIM modeline from the bottom. Our formatting standard is specified in `$BASH_IT/.EditorConfig`.
2022-01-03 20:45:39 -08:00
John D Pell
d1b7166358
theme/essential: `shfmt`
2022-01-03 20:45:39 -08:00
John D Pell
9f79848eed
theme/essential: SC2154
...
Handle all unbound parameters, even colors!
2022-01-03 20:45:39 -08:00
noviicee
1305a86136
Changed alias name
2022-01-03 23:43:40 +05:30
noviicee
201827ddff
Merge branch 'master' of git://github.com/Bash-it/bash-it into issue-1206
2022-01-03 23:38:33 +05:30
Noah Gorny
c81c9dcc8c
Merge pull request #1865 from NoahGorny/add-profile-subcommand
...
add profile subcommand
2022-01-03 14:00:39 +02:00
Noah Gorny
f0abc3fbc4
Merge pull request #1998 from tsiflimagas/fzf-plugin
...
Fix checking whether fzf is already in PATH
2022-01-03 13:33:14 +02: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
dd911f1256
plugins/python: code style improvements
...
Use shell functionality to avoid invoking external binaries, and quote some stuff. Alsö, use $EDITOR and related variables in order to fall through if some aren't defined.
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
a99b597217
plugin/git-subrepo: use `$HOME` instead of `~`
...
If the outer variable is double-quoted, then the default expansion when undefined does not get tilde-expanded. Use `$HOME`.
2022-01-01 22:32:03 -08:00
John D Pell
d6bcedfa96
plugin/base: rewrite `t()` function to use `todo.sh`
...
Move the test for whether `plugin/todo` is enabled inside the function, and remove the alias from there.
Alsö, respect `$XDG_STATE_HOME` and move the old `~/.t` file if it exists.
2022-01-01 17:50:55 -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
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