From 7b9c6c470270594aabe173ba616a6a794660998b Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Wed, 23 Oct 2019 15:59:49 +0100 Subject: [PATCH] updated functions.sh --- .bash.d/functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bash.d/functions.sh b/.bash.d/functions.sh index b833080c..12f76e1c 100644 --- a/.bash.d/functions.sh +++ b/.bash.d/functions.sh @@ -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 '/\.') }