feat: add rn command
This commit is contained in:
parent
88a4bb542b
commit
17bd44383c
@ -4,4 +4,5 @@ source $(dirname "$0")/functions/start.zsh;
|
||||
source $(dirname "$0")/functions/wp.zsh;
|
||||
source $(dirname "$0")/functions/y.zsh;
|
||||
source $(dirname "$0")/functions/fp.zsh;
|
||||
source $(dirname "$0")/functions/mke.zsh;
|
||||
source $(dirname "$0")/functions/mke.zsh;
|
||||
source $(dirname "$0")/functions/rn.zsh;
|
3
configs/zsh/functions/rn.zsh
Normal file
3
configs/zsh/functions/rn.zsh
Normal file
@ -0,0 +1,3 @@
|
||||
function rn(){
|
||||
find . -name "*.$1" -exec sh -c 'mv "$0" "${0%.'$1'}.'$2'"' {} \;
|
||||
}
|
Loading…
Reference in New Issue
Block a user