Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

direnv sets gcroots to a directory not in nh's regex #114

Open
bestlem opened this issue May 17, 2024 · 1 comment
Open

direnv sets gcroots to a directory not in nh's regex #114

bestlem opened this issue May 17, 2024 · 1 comment

Comments

@bestlem
Copy link

bestlem commented May 17, 2024

You can change where direnv puts its cached files. https://github.com/direnv/direnv/wiki/Customizing-cache-location

The examples I have seen end up in ${XDG_CACHE_HOME}/direnv/layouts

Can the regex nh look at be extended to cover this,

@viperML
Copy link
Owner

viperML commented May 17, 2024

Yes, here:

let filename_tests = [r".*/.direnv/.*", r".*result.*"];

Ideally we add a new CLI flag to nh clean such that the user can pass their own extra rules, e.g.

nh clean all -R "my rule" -R "my rule2"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants