updated functions.sh

pull/2/head
Hari Sekhon 5 years ago
parent c224a5488b
commit 7b9c6c4702

@ -195,10 +195,10 @@ f(){
}
dgrep(){
local pattern="$1"
local pattern="$*"
# auto-exported in aliases.sh when iterating git repos
# shellcheck disable=SC2154
ls "$docs/*$pattern*" 2>/dev/null
ls "$docs/*$1*" 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