From 3cc2f2bf62918a5f6ea2287ffbc4c6b02aa240ed Mon Sep 17 00:00:00 2001 From: William Carroll Date: Sat, 29 Jul 2017 21:41:52 -0400 Subject: [PATCH] Defines convenience function for quickly fuzzy-finding files --- functions/misc_functions.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/functions/misc_functions.sh b/functions/misc_functions.sh index d8f0c79d1..59bbdcf04 100644 --- a/functions/misc_functions.sh +++ b/functions/misc_functions.sh @@ -94,6 +94,13 @@ function wsearchpath { } +function ff { + # finds files smartly; using rg under-the-hood so blacklisted files are ignored + glob=$1 + rg -g "*$glob*" --files +} + + # tests an internet connection function is_online { wget -q --spider "http://google.com"