You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Files that I still want are .prettierrc and all files beginning with .env regardless of if they're in the .gitignore. Let's try with --hidden to at least get .prettierrc:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to list out all useful files in the repository I'm working in (think input to a fuzzy finder).
Here's an example file layout to work with:
With a `.gitignore` that looks like:
Desired output is:
What I tried
Let's start with:
Output:
Files that I still want are
.prettierrcand all files beginning with.envregardless of if they're in the.gitignore. Let's try with--hiddento at least get.prettierrc:Output:
Doh, now all of
.git/*is included. Let's try to glob that away:Output:
Great. Back on track. Now to try to show
.env*, try with a glob again:Output:
Now that's included all the
.env*files I wanted but excluded everything else.The following I think this is the right output but it's not very efficient and I would ideally like it as one command so it can avoid using a shell:
Beta Was this translation helpful? Give feedback.
All reactions