updated functions.sh

pull/2/head
Hari Sekhon 5 years ago
parent 6c595d577f
commit 88ac39565c

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

Loading…
Cancel
Save