Add some bash machinery so that scripts/* can be invoked from any directory successfully. Added .envrc for direnv. #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First, lispx is neat, ty.
Second, no one asked me for a pull request, so cherrypick what you like or ignore it all.
Third,
pre-commit
unfortunately works nicely withdirenv
and this pull request contains.js
files and.lock
files I didn't intend. Maybe there's a way to remove those from the pull request, but as of this paragraph I don't know exactly how to do that. About to give that a go. But be aware you can't just blindly apply all the changes.Finally, the real contribution is modifying
scripts/*
so that you can invoke them from anywhere in the project layout. Direnv addsscripts
to PATH and the scripts themselves will find assets relative toBASH_SOURCE
, the pathname of the running script. Bash is explicitly invoked so I use a bashism rather than$0
.