diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2020-09-08 11:18:49 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2020-09-08 11:18:49 +0800 |
commit | 021d2df326adba6fe9c028d65d1445a28753773e (patch) | |
tree | bba8188ff9645a1abe445529016f58f5e276e704 /tools/init/sync.sh | |
parent | 4944344d5add3d8b8265deef39dd368d44873c1b (diff) |
update
Diffstat (limited to 'tools/init/sync.sh')
-rwxr-xr-x | tools/init/sync.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/init/sync.sh b/tools/init/sync.sh new file mode 100755 index 0000000..00ed4b8 --- /dev/null +++ b/tools/init/sync.sh | |||
@@ -0,0 +1,11 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # my repo | ||
4 | cd $SETTING_DIR && git pull --quiet || echo in `pwd` > /dev/tty & | ||
5 | if [ -d ~/vimwiki ]; then | ||
6 | cd ~/vimwiki && git pull --quiet || echo in `pwd` > /dev/tty & | ||
7 | fi | ||
8 | |||
9 | # others repo | ||
10 | check_upstream ~/git/tig || echo in `pwd` > /dev/tty & | ||
11 | check_upstream ~/.vim_runtime || echo in `pwd` > /dev/tty & | ||