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

support for globs in watch_file #1263

Open
gekoke opened this issue Apr 1, 2024 · 2 comments
Open

support for globs in watch_file #1263

gekoke opened this issue Apr 1, 2024 · 2 comments
Labels

Comments

@gekoke
Copy link

gekoke commented Apr 1, 2024

Does watch_file support file globs?

If yes, then this should be documented under the watch_file section in the manual.

If no, then I think this would be a sensible (almost essential?) feature to have.

@gekoke gekoke added the Feature label Apr 1, 2024
@zimbatm
Copy link
Member

zimbatm commented Apr 4, 2024

yes, globs are built into bash, so they work everywhere. You can think of globs like a pre-processing phase that expands the list of arguments passed to the program or function.

@gekoke
Copy link
Author

gekoke commented Apr 16, 2024

Ah, I didn't realize .envrc files were Just Bash Scripts™ (though now I see that the readme is quite explicit about this), since I really only use them to load flake devShells - that explains it. I think a few examples using globs in the docs wouldn't hurt, though!

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

No branches or pull requests

2 participants