forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Brett
committed
Aug 18, 2012
1 parent
75c6dda
commit fc6c25a
Showing
3 changed files
with
37 additions
and
17 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
function link_file { | ||
source="${PWD}/$1" | ||
target="${HOME}/${1/_/.}" | ||
|
||
if [ -e "${target}" ]; then | ||
mv $target $target.bak | ||
fi | ||
|
||
ln -sf ${source} ${target} | ||
} | ||
|
||
if [ "$1" = "vim" ]; then | ||
for i in _vim* | ||
do | ||
link_file $i | ||
done | ||
else | ||
for i in _* | ||
do | ||
link_file $i | ||
done | ||
fi | ||
|
||
git submodule sync | ||
git submodule init | ||
git submodule update | ||
git submodule foreach git pull origin master | ||
git submodule foreach git submodule init | ||
git submodule foreach git submodule update | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
git submodule foreach git pull origin master | ||
git submodule foreach git submodule foreach git pull origin master | ||
|