Don’t believe so
@teodorlu it’s not pretty but i have a format.sh with this
#!/usr/bin/env zsh
unset CLASSPATH
lein zprint src/**/*.clj*
and an alias using lein-shell like this
"format" ["shell" "./format.sh"]
Nice! -- Well, depends on our definition of nice. Glad you got it working 🙂
Seems like a good case for ZSH, actually. As long as ZSH is installed.
that’s the rub. not sure if i want to rely on that. it’s on macs by default; so i’ll have to think on that more.
goal is pre-commit hook that will format with zprint and then lint with clj-kondo all using dev deps and aliases in project.clj so there’s no reliance on having the os binaries of those tools installed.
Is find
preinstalled on macs? I don't think I've found a Linux system missing it.
lein zprint `find src -iname '*.clj'
`