|
|
@ -198,7 +198,7 @@ dgrep(){
|
|
|
|
local pattern="$*"
|
|
|
|
local pattern="$*"
|
|
|
|
# auto-exported in aliases.sh when iterating git repos
|
|
|
|
# auto-exported in aliases.sh when iterating git repos
|
|
|
|
# shellcheck disable=SC2154
|
|
|
|
# shellcheck disable=SC2154
|
|
|
|
ls "$docs/"*${pattern// /}* 2>/dev/null
|
|
|
|
ls "$docs/"*"${pattern// /}"* 2>/dev/null
|
|
|
|
# shellcheck disable=SC2046,SC2033
|
|
|
|
# shellcheck disable=SC2046,SC2033
|
|
|
|
grep -iR "$pattern" $(find ~/docs "$docs" -type f -maxdepth 1 2>/dev/null | grep -v '/\.')
|
|
|
|
grep -iR "$pattern" $(find ~/docs "$docs" -type f -maxdepth 1 2>/dev/null | grep -v '/\.')
|
|
|
|
}
|
|
|
|
}
|
|
|
|