aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/init/sync.sh
blob: 10faf0431c5760480b3e83847af2e16c6adcddd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

# my repo
sync() {
  [ ! -d $1 ] && return
  cd $1 && git pull --quiet || echo in `pwd` >/dev/tty &
}
sync $SETTING_DIR
sync ~/vimwiki
sync ~/.task
sync ~/.password-store

# others repo
check_upstream ~/git/tig || echo in `pwd` >/dev/tty &
check_upstream ~/.vim_runtime || echo in `pwd` >/dev/tty &

# rsync
if [[ `cat /etc/hostname` != 'vultr' ]]; then
  rsync -a --delete pham@topo.tw:~/.thunderbird/ ~/.thunderbird &
fi