Don't search in the .git directory
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
859762379f
commit
453232cba0
1 changed files with 1 additions and 1 deletions
2
zet
2
zet
|
@ -168,7 +168,7 @@ run_git_command() {
|
||||||
}
|
}
|
||||||
|
|
||||||
search_zets() {
|
search_zets() {
|
||||||
grep --recursive --ignore-case --files-with-matches "$*" "$ZET_DIR" | while read -r file; do
|
grep --recursive --ignore-case --files-with-matches --exclude-dir=.git "$*" "$ZET_DIR" | while read -r file; do
|
||||||
id="$(get_zet_id_from_filepath "$file")"
|
id="$(get_zet_id_from_filepath "$file")"
|
||||||
title=$(head -1 "$file" | sed 's/^= //' | sed 's/# //')
|
title=$(head -1 "$file" | sed 's/^= //' | sed 's/# //')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue