plugins/base: `lsgrep` is SC2010
The `lsgrep()` function is *itself* explicitly forbidden by `shellcheck` rule SC2010. Alsö, s/`$*`/`$@`pull/1930/head
parent
423729e2be
commit
8d3e81a49f
|
|
@ -96,11 +96,11 @@ function mkcd() {
|
|||
mkdir -p -- "$@" && cd -- "${!#}" || return
|
||||
}
|
||||
|
||||
function lsgrep ()
|
||||
{
|
||||
# shellcheck disable=SC2010
|
||||
function lsgrep() {
|
||||
about 'search through directory contents with grep'
|
||||
group 'base'
|
||||
ls | grep "$*"
|
||||
ls | grep "$@"
|
||||
}
|
||||
|
||||
function quiet() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue