From d2bf30770dcd88ffdf30ac14a2c23d49024c9d3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Tansorier?= Date: Tue, 8 Nov 2022 17:35:04 +0100 Subject: [PATCH] bashrc: Add function to find files in repo without .git folder --- bashrc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/bashrc b/bashrc index df49596..07a5624 100644 --- a/bashrc +++ b/bashrc @@ -63,6 +63,22 @@ d2h(){ echo "obase=16; $@"|bc } +findrepo(){ + if [ ! -z "$1" ]; then + find "$1" -not -path "*/\.git/*"; + else + find . -not -path "*/\.git/*"; + fi +} + +findrepofiles(){ + if [ ! -z "$1" ]; then + find "$1" -type f -not -path "*/\.git/*"; + else + find . -type f -not -path "*/\.git/*"; + fi +} + # kill baloo utils baloo_clean(){ sudo killall baloo_file