diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/init/sync.sh | 12 | ||||
| -rwxr-xr-x | bin/wakeup.sh | 4 |
2 files changed, 7 insertions, 9 deletions
diff --git a/bin/init/sync.sh b/bin/init/sync.sh index bcd7bed..ffd91c0 100755 --- a/bin/init/sync.sh +++ b/bin/init/sync.sh | |||
| @@ -10,14 +10,10 @@ sync() { | |||
| 10 | } 2>/dev/null | 10 | } 2>/dev/null |
| 11 | GIT_SSH_COMMAND="ssh -o ControlMaster=no" git pull --quiet || echo Has trouble when syncing `pwd` | 11 | GIT_SSH_COMMAND="ssh -o ControlMaster=no" git pull --quiet || echo Has trouble when syncing `pwd` |
| 12 | } | 12 | } |
| 13 | sync $SETTING_DIR & | 13 | |
| 14 | sync ~/log & | 14 | while read repo; do |
| 15 | sync ~/blog & | 15 | sync $repo & |
| 16 | sync ~/git/vps & | 16 | done <~/.repos |
| 17 | sync ~/.task & | ||
| 18 | sync ~/.password-store & | ||
| 19 | sync ~/.vim/vim-init & | ||
| 20 | sync ~/bean & | ||
| 21 | 17 | ||
| 22 | while true; do | 18 | while true; do |
| 23 | if test $(jobs -r | wc -l) -gt 0; then | 19 | if test $(jobs -r | wc -l) -gt 0; then |
diff --git a/bin/wakeup.sh b/bin/wakeup.sh index 9f6d7a2..188f749 100755 --- a/bin/wakeup.sh +++ b/bin/wakeup.sh | |||
| @@ -11,7 +11,9 @@ find $SETTING_DIR/bin -type f -executable -exec realpath {} + | \ | |||
| 11 | xargs -I{} ln -sf {} $BIN_DIR | 11 | xargs -I{} ln -sf {} $BIN_DIR |
| 12 | 12 | ||
| 13 | # sync with important git repos | 13 | # sync with important git repos |
| 14 | setsid ~/bin/check-repos.sh | 14 | setsid ~/bin/sync.sh && \ |
| 15 | which notify-send &>/dev/null && \ | ||
| 16 | notify-send 'Repos synced' | ||
| 15 | 17 | ||
| 16 | # Copy context file from vps | 18 | # Copy context file from vps |
| 17 | rsync -au vps:~/.context ~/.context | 19 | rsync -au vps:~/.context ~/.context |