Common usage for Ripgrep

Show context around search:

nix-env --help | rg packages --context 2

References: Fast searching with ripgrep