From 775ad8fad5df37fc9e637fa0a26a63f578dbb81c Mon Sep 17 00:00:00 2001 From: BarbUk Date: Thu, 13 Apr 2017 11:17:31 +0400 Subject: [PATCH] ignore .git files --- snippy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippy b/snippy index ae7e4f1..d49d302 100755 --- a/snippy +++ b/snippy @@ -69,7 +69,7 @@ run(){ cd "${DIR}" || exit # Use the filenames in the snippy directory as menu entries. # Get the menu selection from the user. - FILE=$(find -L . -type f | grep -v '^\.$' | sed 's!\.\/!!' | ${MENU_ENGINE} ${MENU_ARGS}) + FILE=$(find -L . -type f | grep -v '^\.$' | sed 's!\.\/!!' | grep -v .git/ | ${MENU_ENGINE} ${MENU_ARGS}) # just return if nothing was selected [[ -z "${FILE}" ]] && return 1