Commit Graph

9 Commits (ec3c06fa33e56cc4245f2ad1a4d3f8fa1953e20e)

Author SHA1 Message Date
John D Pell a4e4f30ff1 plugins/percol: `bind`
Move `bind` below function definition
2021-09-26 11:54:32 -07:00
John D Pell 92282c4795 plugin/percol: `shellcheck` & `shfmt`
According to `shellcheck`, the `_tac` alias simply doesn't work. At all. Ever. See SC2262 and SC2263.
2021-09-24 00:39:07 -07:00
John D Pell 2ada414266 plugins/percol: use `_command_exists`
Addresses bash-it/bash-it#1632

And use `_log_warning`.

Alsö, code style cleanup: quote things, handle unbound parameters, &c.

Alsö alsö, short-circuit if not installed or inadequate _Bash_ version.
2021-09-24 00:38:54 -07:00
John McBride a76a9ee437 Remove fasd zz function from percol plugin
Signed-off-by: John McBride <jpmmcbride@gmail.com>
2020-02-14 14:03:54 -07:00
Nils Winkler ca5c512a35 Removed 'local' keyword 2018-12-18 09:26:25 +01:00
Adam Wallis 3651a31c5e Fixes: 659ecd0388 plugins: percol: Check for alias zz before unalias
The original patch (659ecd0388)
unaliases the percol alias, however, does not validate if the alias
is already defined. This leads to the following message that is shown
everytime a new bash session is spawned where this variable is not
defined when the percol plugin is enabled.

bash: unalias: zz: not found
2018-01-10 19:58:29 -05:00
Adam Wallis 659ecd0388 plugins: percol: Unalias zz before defining zz function
Percol defines zz alias by default. This ensures that the percol
plugin will work as expected.
2017-05-25 19:43:17 -04:00
Nils Winkler 4790569671 Fixed percol plugin function syntax
Without the `function` keyword, the file did not load when using Bash
v3.x. With the added `function` keyword, the file can be parsed and the
error message about having to install Bash v4 is shown.

Closes #881
2017-01-09 09:14:05 +01:00
codefalling c08c1c095a add plugin:percol 2016-01-05 23:34:10 +08:00