recursive_replace with find, gitconfig removed
This commit is contained in:
parent
39de167abd
commit
1dbd39b0f5
1
.gitignore
vendored
1
.gitignore
vendored
@ -15,3 +15,4 @@ vim/sessions
|
|||||||
bin/subl
|
bin/subl
|
||||||
tags
|
tags
|
||||||
.idea
|
.idea
|
||||||
|
git/gitconfig
|
||||||
|
@ -127,6 +127,3 @@
|
|||||||
enabled = true
|
enabled = true
|
||||||
[include]
|
[include]
|
||||||
path = .gitconfig.user
|
path = .gitconfig.user
|
||||||
[user]
|
|
||||||
email = j@rallets.com
|
|
||||||
name = Jie Feng
|
|
@ -144,7 +144,7 @@ function recursive_replace {
|
|||||||
echo "recursive_replace \"FILE_PATTERN\" BEFORE AFTER"
|
echo "recursive_replace \"FILE_PATTERN\" BEFORE AFTER"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
find . -type f -name $1 -print0 | xargs -0 sed -i "s/$2/$3/g"
|
find -iregex $1 -print0 | xargs -0 sed -i "s/$2/$3/g"
|
||||||
}
|
}
|
||||||
function git-change-module-remote() {
|
function git-change-module-remote() {
|
||||||
git config --file=.gitmodules submodule.$1.url $2
|
git config --file=.gitmodules submodule.$1.url $2
|
||||||
|
Loading…
Reference in New Issue
Block a user