mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-04 15:07:23 +01:00
start out with thoughtbots version
This commit is contained in:
9
zsh/functions/change-extension
Normal file
9
zsh/functions/change-extension
Normal file
@@ -0,0 +1,9 @@
|
||||
# Change file extensions recursively in current directory
|
||||
#
|
||||
# change-extension erb haml
|
||||
|
||||
function change-extension() {
|
||||
foreach f (**/*.$1)
|
||||
mv $f $f:r.$2
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user