Files
bash-it/plugins/available
John D Pell c2c76a380a plugin/base: improvements (#1930)
* plugins/base: code style improvements

Quote variables, use $@ and $array[@] instead of $*, typeset some integers, remove unneccesasary binary invocation, use shell features when possible, remove `eval`, &c.

* plugins/base: conditional function definitions

Instead of functions failing when required tools aren't installed, just don't define the function.
Alsö, don't redefine del() if it already exists.

* plugins/base: rewrite `usage()`

Reimplement disk usage function using Bash syntax and simpler layout, without having to invoke an external binary.

* plugins/base: revamp `quiet()`

New implementation that is even quieter.

* plugins/base: `myip()`

* plugins/base: `pickfrom()`

* plugins/base: `passgen()`

Fix `passgen()` to not need `tr`, remove one subshell, and eliminate a useless `echo`.

* plugins/base: `mkcd()`

* plugins/base: `mkiso()`

* plugins/base: remove `banish-cookies()`

Adobe Flash is gone with the wind. Alsö, this would be something someone would do *once* and shouldn't be a function...

* plugins/base: `lsgrep` is SC2010

The `lsgrep()` function is *itself* explicitly forbidden by `shellcheck` rule SC2010.

Alsö, s/`$*`/`$@`

* plugins/base: `mkiso()`

Expressly handle unbound parameters.

* plugins/base: remove `command_exists`

* plugin/base: lint SC2154 && SC2144

Newly undisabled `shellcheck` rules

* plugin/base: import libs for tests

* plugin/base: `shfmt`

Apply `shfmt` using current project settings. My apologies to future `git blame` hunters. ♥
2021-09-28 15:13:27 +03:00
..
2020-04-27 21:22:23 -07:00
2019-04-11 10:57:04 +02:00
2012-05-13 22:13:54 -04:00
2020-03-10 23:02:33 -07:00
2021-09-18 13:15:13 -07:00
2020-10-29 19:57:14 +02:00
2021-03-24 18:42:44 +08:00
2020-07-12 12:37:00 -05:00
2020-10-15 09:19:13 +03:00
2015-06-18 11:51:51 -04:00
2021-09-18 12:50:59 +03:00
2021-09-18 12:50:59 +03:00
2020-10-29 19:57:14 +02:00
2012-05-13 22:13:54 -04:00
2021-01-15 11:57:41 -06:00
2021-01-15 11:57:41 -06:00
2012-05-21 11:50:01 +02:00
2020-10-29 19:57:14 +02:00
2019-04-04 17:51:32 -04:00
2021-09-26 11:54:32 -07:00
2016-05-23 08:45:46 +02:00
2020-10-29 19:57:14 +02:00
2020-02-16 15:44:50 +08:00
2020-02-16 12:38:14 +01:00
2021-09-18 22:26:27 -07:00
2021-09-18 12:50:59 +03:00