#toc #faster #directory #config #rushed

app rushed

Simpler and faster shell commands

1 unstable release

Uses new Rust 2024

new 0.1.0 May 9, 2025

#3 in #faster

MIT license

9KB
156 lines

A collection of CLI tools to simplify and speed up shell usage.

[TOC]

Install

cargo install rushed

f - Find your file faster

f is a fast alternative to find and grep with simpler syntax and smart configuration.

Usage

f [OPTIONS] [match_files]...

Examples

# Find files matching a pattern (like `find . -name "*rs"`)
f "rs$"

# Find a file while ignoring specific directories
f --idirs node_modules index.js  # without config
f index.js                       # with config
# Find files ending with "rs" and containing lines matching "Arc" AND "use"
find . -name "*rs" -exec grep -l Arc '{}' \; | grep use
f "rs$" -a Arc use
# Find all files .cpp and .h
f "cpp$" "h$"

Options

  • --generate-conf Generate default config (overwrite if exists)
  • -p, --path <path> Search root path [default: .]
  • --idirs <ignore_dirs>... Ignore listed directories
  • --ifiles <ignore_files>... Ignore listed files
  • --max-depth <max_depth> Max depth [default: 100]
  • -n, --any <patterns_any>... Match any of these patterns in file content
  • -a, --all <patterns_all>... Match all of these patterns in file content
  • -c, --conf <conf> Config file path [default: ~/.config/rush/conf.json]
  • -v, --verbose Print matched lines
  • -h, --help Show help
  • -V, --version Show version

Dependencies

~5–7MB
~127K SLoC