Merge pull request 'zsh: add fr function' (#56) from develop into release-25.11
All checks were successful
Deploy docs / build-and-deploy (push) Successful in 7s

Reviewed-on: #56
This commit is contained in:
sid 2026-05-31 21:05:20 +02:00
commit 0290c05845
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"
}

View file

@ -12,6 +12,7 @@ in
PROMPT='%F{green}%n%f@%F{blue}%m%f %B%1~%b > '
RPROMPT='[%F{yellow}%?%f]'
''
+ builtins.readFile ./cdf.sh;
+ builtins.readFile ./cdf.sh
+ builtins.readFile ./fr.sh;
};
}