diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-04-17 23:38:54 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2022-04-17 23:38:54 +0800 |
commit | 5cf916480f3a1a65a2e5be4e47839fa91998e719 (patch) | |
tree | c5e5f7f8d33a3a3a28c3d38d9de7158f3165248d | |
parent | 967993a83672b28cc73ba5889b141f9f2060a317 (diff) |
Update
-rwxr-xr-x | tools/init/load-settings.sh | 2 | ||||
-rwxr-xr-x | tools/init/sync.sh | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/tools/init/load-settings.sh b/tools/init/load-settings.sh index d45a1c0..8ebd958 100755 --- a/tools/init/load-settings.sh +++ b/tools/init/load-settings.sh | |||
@@ -37,7 +37,7 @@ xargs realpath | xargs -I{} ln -sf {} $BIN_DIR | |||
37 | MAIL=$HOME/Maildir | 37 | MAIL=$HOME/Maildir |
38 | 38 | ||
39 | # sync with important git repos | 39 | # sync with important git repos |
40 | sync.sh | 40 | (sync.sh &) |
41 | 41 | ||
42 | # local | 42 | # local |
43 | PATH=$PATH:$HOME/.local/bin | 43 | PATH=$PATH:$HOME/.local/bin |
diff --git a/tools/init/sync.sh b/tools/init/sync.sh index ebed33a..15663f0 100755 --- a/tools/init/sync.sh +++ b/tools/init/sync.sh | |||
@@ -5,15 +5,15 @@ | |||
5 | 5 | ||
6 | # my repo | 6 | # my repo |
7 | sync() { | 7 | sync() { |
8 | { cd $1 && [[ -n $(git remote -v) ]] || return ; } 2>/dev/null | 8 | { cd $1 && [[ -n $(git remote -v) ]] || return; } 2>/dev/null |
9 | git pull --quiet || echo in `pwd` >/dev/tty & | 9 | git pull --quiet || echo in `pwd` >/dev/tty |
10 | } | 10 | } |
11 | sync $SETTING_DIR | 11 | sync $SETTING_DIR & |
12 | sync ~/blog | 12 | sync ~/blog & |
13 | sync ~/vimwiki | 13 | sync ~/vimwiki & |
14 | sync ~/.task | 14 | sync ~/.task & |
15 | sync ~/.password-store | 15 | sync ~/.password-store & |
16 | sync ~/.vim_runtime | 16 | sync ~/.vim_runtime & |
17 | 17 | ||
18 | # others repo | 18 | # others repo |
19 | #check_upstream ~/git/tig || echo in `pwd` >/dev/tty & | 19 | #check_upstream ~/git/tig || echo in `pwd` >/dev/tty & |