blob: c515841cec3b7f69c2cb1cbf6c8c4eb69138ee81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/bash
# my repo
sync() {
[[ -d $1 || -z $(git remote -v) ]] && return
cd $1
git pull --quiet || echo in `pwd` >/dev/tty &
}
sync $SETTING_DIR
sync ~/blog
sync ~/vimwiki
sync ~/.task
sync ~/.password-store
sync ~/.vim_runtime
# others repo
#check_upstream ~/git/tig || echo in `pwd` >/dev/tty &
# thunderbird
#if [[ `cat /etc/hostname` != 'vultr' ]]; then
# rsync -a pham@topo.tw:~/.thunderbird/ ~/.thunderbird &
#fi
|