Skip to content

Include .env in results #2428

Answered by BurntSushi
joshmedeski asked this question in Q&A
Feb 23, 2023 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

Probably the simplest approach here is to do echo '!/.env' > .rgignore, which whitelists it. But then it will appear in results even without --hidden. But I think that's the best you can do. ripgrep is not arbitrarily flexible in this area.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@joshmedeski
Comment options

@BurntSushi
Comment options

Answer selected by joshmedeski
Comment options

You must be logged in to vote
4 replies
@BurntSushi
Comment options

@steliyan
Comment options

@BurntSushi
Comment options

@steliyan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants