diff options
| author | Hsieh Chin Fan <typebrook@gmail.com> | 2021-04-05 20:27:59 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <typebrook@gmail.com> | 2021-04-05 20:27:59 +0800 |
| commit | be43724460ce9db3bacac44b05dcf2804a2a0a14 (patch) | |
| tree | cf3456bab084ba502c7f24759c542c9c8da4069f | |
| parent | 19a2bcce6c5d87610fa80376990a0eebb46c0874 (diff) | |
update
| -rw-r--r-- | tools/init/exit.sh | 3 | ||||
| -rwxr-xr-x | tools/init/load-settings.sh | 3 | ||||
| -rwxr-xr-x | tools/init/sync.sh | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/tools/init/exit.sh b/tools/init/exit.sh new file mode 100644 index 0000000..dd8710a --- /dev/null +++ b/tools/init/exit.sh | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #! /bin/env bash | ||
| 2 | |||
| 3 | rsync -a --delete ~/.thunderbird/ pham@topo.tw:~/.thunderbird/ | ||
diff --git a/tools/init/load-settings.sh b/tools/init/load-settings.sh index 73db314..92e21fa 100755 --- a/tools/init/load-settings.sh +++ b/tools/init/load-settings.sh | |||
| @@ -33,3 +33,6 @@ PATH=$PATH:$HOME/go/bin | |||
| 33 | 33 | ||
| 34 | # android-studio | 34 | # android-studio |
| 35 | PATH=$PATH:$HOME/android-studio/bin | 35 | PATH=$PATH:$HOME/android-studio/bin |
| 36 | |||
| 37 | # Run something after exit shell | ||
| 38 | trap 'exit.sh' EXIT | ||
diff --git a/tools/init/sync.sh b/tools/init/sync.sh index fceb39c..b9e7266 100755 --- a/tools/init/sync.sh +++ b/tools/init/sync.sh | |||
| @@ -13,3 +13,6 @@ sync ~/.password-store | |||
| 13 | # others repo | 13 | # others repo |
| 14 | check_upstream ~/git/tig || echo in `pwd` >/dev/tty & | 14 | check_upstream ~/git/tig || echo in `pwd` >/dev/tty & |
| 15 | check_upstream ~/.vim_runtime || echo in `pwd` >/dev/tty & | 15 | check_upstream ~/.vim_runtime || echo in `pwd` >/dev/tty & |
| 16 | |||
| 17 | # thunderbird | ||
| 18 | rsync -a pham@topo.tw:~/.thunderbird/ ~/.thunderbird/ | ||