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
All checks were successful
Deploy docs / build-and-deploy (push) Successful in 7s
Reviewed-on: #56
This commit is contained in:
commit
0290c05845
2 changed files with 9 additions and 1 deletions
7
modules/home/common/fr.sh
Normal file
7
modules/home/common/fr.sh
Normal 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"
|
||||
}
|
||||
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue