From 0a70866b9aa9caa88a4509586886ed31280af0c9 Mon Sep 17 00:00:00 2001 From: jc <46619361+juancwu@users.noreply.github.com> Date: Tue, 26 Nov 2024 14:40:04 -0500 Subject: [PATCH] (zsh) only ignore .git/ --- zsh/.zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index b0fa52b..cc8cd8a 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -191,9 +191,9 @@ ed() { local f="" 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 - f=$(find . | grep -Ev "node_modules|\.git" | fzf) + f=$(find . | grep -Ev "node_modules|\.git/" | fzf) fi if [ -n "$f" ]; then