Live data from Hacker News

Rotz: Cross platform dotfile manager written in Rust

volllly.github.io

1–10 of 46 posts

Re: Rotz: Cross platform dotfile manager written in Rust

#9
post #8

Oh neat. It seems useful to manage this through a CLI tool! I wonder if something like this can build in protections for common dot file mistakes like accidentally committing API keys in one’s dot files? Nice idea!

You can put something like detect-secrets[1] in a commit hook.

  no_secrets=$(git diff --staged --name-only -z | xargs -0 detect-secrets-hook --baseline .secrets.baseline)
  test -z $no_secrets && exit $no_secrets
1: https://github.com/Yelp/detect-secrets

Re: Rotz: Cross platform dotfile manager written in Rust

#10
Reminds me of my own project, Comtrya

One of our goals is to run anywhere too, we have support for BSD as well as Windows, macOS, and Linux; as well as first class variant support for "define once, run everywhere" functionality.

Our core lib is available and built to support other dot file managers, perhaps it could be useful to you.

https://github.com/comtrya/comtrya

Post reply on HN