write git hooks

This commit is contained in:
2024-04-06 02:00:09 +02:00
parent 5b3a12d628
commit 72d624ec95
2 changed files with 30 additions and 1 deletions

2
new.sh
View File

@@ -14,7 +14,7 @@ filePath="$category/$(echo $name | sed 's/ /_/g').md"
tagsList="$(echo \"$category | sed 's#\/#", "#g')\""
[ -e "$filePath" ] && $EDITOR $filePath && exit 0
[ -e "$filePath" ] && $EDITOR "$filePath" && exit 0
echo "---
title: \"$name\"