plugins/base: `lsgrep` is SC2010

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

Alsö, s/`$*`/`$@`
pull/1930/head
John D Pell 2021-09-23 22:53:44 -07:00
parent 423729e2be
commit 8d3e81a49f
1 changed files with 3 additions and 3 deletions

View File

@ -96,11 +96,11 @@ function mkcd() {
mkdir -p -- "$@" && cd -- "${!#}" || return mkdir -p -- "$@" && cd -- "${!#}" || return
} }
function lsgrep () # shellcheck disable=SC2010
{ function lsgrep() {
about 'search through directory contents with grep' about 'search through directory contents with grep'
group 'base' group 'base'
ls | grep "$*" ls | grep "$@"
} }
function quiet() { function quiet() {