(bash) only ignore .git/ folder

This commit is contained in:
jc 2024-11-26 14:39:28 -05:00
commit 3b73a5042a

View file

@ -406,9 +406,9 @@ ed() {
local f="" local f=""
if [ $# -eq 1 ]; then if [ $# -eq 1 ]; then
f=$(find . | grep -Ev "node_modules|\.git" | fzf --filter="$1" --select-1 --exit-0 | head -1) f=$(find . | grep -Ev "node_modules|\.git/" | fzf --filter="$1" --select-1 --exit-0 | head -1)
else else
f=$(find . | grep -Ev "node_modules|\.git" | fzf) f=$(find . | grep -Ev "node_modules|\.git/" | fzf)
fi fi
if [ -n "$f" ]; then if [ -n "$f" ]; then