ripgrep type definition to skip testsripgrep: print only filenames matching patternripgrep path pattern
Do Milankovitch Cycles fully explain climate change?
Are there any instances of members of different Hogwarts houses coupling up and marrying each other?
Can a magnet rip protons from a nucleus?
Kerning feedback on logo
Do ibuprofen or paracetamol cause hearing loss?
Georgian capital letter “Ⴒ” (“tar”) in pdfLaTeX
Seized engine due to being run without oil
Contract Employer Keeps Asking for Small Things Without Pay
Is the union of a chain of elementary embeddings elementary?
Sol Ⅲ = Earth: What is the origin of this planetary naming scheme?
Random point on a sphere
How do email clients "send later" without storing a password?
How can I fix a framing mistake so I can drywall?
What does "synoptic" mean in avionics?
Should I leave the first authourship of our paper to the student who did the project whereas I solved it?
Renewed US passport, did not receive expired US passport
My employer wants me to do a work of 6 months in just 2 months
What's is this random file in Macintosh HD? Malicious?
Why should I always enable compiler warnings?
Gas pipes - why does gas burn "outwards?"
How does Vivi differ from other Black Mages?
Why does F + F' = 1?
How can a resurrection system prevent the cheapening of death?
Is there a standard terminology for female equivalents of terms such as 'Kingdom' and if so, what are the most common terms?
ripgrep type definition to skip tests
ripgrep: print only filenames matching patternripgrep path pattern
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I would like to be able to run rg -Ttests
instead of typing rg -g'!tests/' -g '!test/' -g'!Tests/' -g '!Test/'
, is that possible?
ripgrep
add a comment |
I would like to be able to run rg -Ttests
instead of typing rg -g'!tests/' -g '!test/' -g'!Tests/' -g '!Test/'
, is that possible?
ripgrep
add a comment |
I would like to be able to run rg -Ttests
instead of typing rg -g'!tests/' -g '!test/' -g'!Tests/' -g '!Test/'
, is that possible?
ripgrep
I would like to be able to run rg -Ttests
instead of typing rg -g'!tests/' -g '!test/' -g'!Tests/' -g '!Test/'
, is that possible?
ripgrep
ripgrep
asked 2 hours ago
chxchx
5755 silver badges16 bronze badges
5755 silver badges16 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
How about an environment variable?
tests='-g!tests/ -g!test/ -g!Tests/ -g!Test/'
rg $tests foo
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f541097%2fripgrep-type-definition-to-skip-tests%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
How about an environment variable?
tests='-g!tests/ -g!test/ -g!Tests/ -g!Test/'
rg $tests foo
add a comment |
How about an environment variable?
tests='-g!tests/ -g!test/ -g!Tests/ -g!Test/'
rg $tests foo
add a comment |
How about an environment variable?
tests='-g!tests/ -g!test/ -g!Tests/ -g!Test/'
rg $tests foo
How about an environment variable?
tests='-g!tests/ -g!test/ -g!Tests/ -g!Test/'
rg $tests foo
answered 38 mins ago
Oh My GoodnessOh My Goodness
4203 silver badges8 bronze badges
4203 silver badges8 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f541097%2fripgrep-type-definition-to-skip-tests%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown