(zsh) only ignore .git/

This commit is contained in:
jc 2024-11-26 14:40:04 -05:00
commit 0a70866b9a

View file

@ -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