Search recursively for <Button in TS/TSX files while excluding node_modules, src/components/contact, and src/components/ui.
rg "<Button" -g "*.ts*" -g '!*./node_modules/**' -g '!src/components/contact/**' -g '!src/components/ui/**'
10/17/2025
Finds all occurrences of <Button in .ts / .tsx files, while excluding folders that create noise or slowdowns.
treats as history expansion. Wrapping the negated globs in prevents errors.
zsh!zsh: event not foundrg "<Button" -g "*.ts*" -g '!*./node_modules/**' -g '!src/components/contact/**' -g '!src/components/ui/**'
-g "*.ts*": include .ts and .tsx-g '!*./node_modules/**': exclude node_modules (quoted for zsh)-g '!src/components/contact/**': exclude that directory-g '!src/components/ui/**': exclude that directory-l-n--color=always!node_modules pattern to -g '!node_modules/**'—the version above matches the exact command that was verified in your shell.