.vscode/settings.json
{
"emeraldwalk.runonsave": {
"commands": [
{
"match": "gists/[^/]+/*",
"cmd": "cd '${fileDirname}' && git commit --allow-empty-message -am '' && git push"
}
]
}
}
- example
git clone [email protected]:5b3dd93d5abf4e395f785c20c6d773e0 "gists/Reading Next.js"
# auto generate phony targets
.PHONY: $(shell grep --no-filename -E '^([a-zA-Z_-]|\/)+:' $(MAKEFILE_LIST) | sed 's/:.*//')
auto-save:
find . -mindepth 2 -type f ! -path '*/.git/*' | entr -s -n -p 'cd $$(dirname $$0) && git commit -am "auto-save" && git push'