diff options
-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/ | ||