zsh: add fr function
All checks were successful
Build tests / build-hosts (pull_request) Successful in 27s
Flake check / flake-check (pull_request) Successful in 37s

This commit is contained in:
sid 2026-05-31 21:01:15 +02:00
parent cd7ea0fab9
commit eac3b0c3ea
2 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# find and replace strings with rg
# Usage: fr OLD NEW
fr() {
rg -lF "$1" | xargs sed -i "s|$1|$2|g"
}