diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/check_upstream.sh | 2 | ||||
-rwxr-xr-x | scripts/my-settings.sh | 5 | ||||
-rwxr-xr-x | scripts/sync.sh | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/scripts/check_upstream.sh b/scripts/check_upstream.sh index 84adb9e..c08b3cf 100755 --- a/scripts/check_upstream.sh +++ b/scripts/check_upstream.sh | |||
@@ -23,5 +23,5 @@ check_upstream() { | |||
23 | echo "New commit at" $1 | 23 | echo "New commit at" $1 |
24 | fi | 24 | fi |
25 | 25 | ||
26 | echo $(date) check $1 >> ~/git/settings/log | 26 | echo $(date) check $1 >> $SETTING_DIR/log |
27 | } | 27 | } |
diff --git a/scripts/my-settings.sh b/scripts/my-settings.sh index 92a22ce..e21aecd 100755 --- a/scripts/my-settings.sh +++ b/scripts/my-settings.sh | |||
@@ -1,5 +1,8 @@ | |||
1 | if [[ -z "$SETTING_DIR" ]]; then | 1 | if [[ -z "$SETTING_DIR" ]]; then |
2 | SETTING_DIR="$HOME/settings" | 2 | SETTING_DIR=$HOME/settings |
3 | fi | 3 | fi |
4 | 4 | ||
5 | source $SETTING_DIR/alias.sh | 5 | source $SETTING_DIR/alias.sh |
6 | |||
7 | PATH=$PATH:$SETTING_DIR/scripts | ||
8 | $SETTING_DIR/scripts/sync.sh | ||
diff --git a/scripts/sync.sh b/scripts/sync.sh index 665acba..fa37fee 100755 --- a/scripts/sync.sh +++ b/scripts/sync.sh | |||
@@ -3,7 +3,7 @@ | |||
3 | DIR="$(cd "$(dirname "$0")" && pwd)" | 3 | DIR="$(cd "$(dirname "$0")" && pwd)" |
4 | source $DIR/check_upstream.sh | 4 | source $DIR/check_upstream.sh |
5 | 5 | ||
6 | cd ~/git/settings && git pull --quiet & | 6 | cd $SETTING_DIR && git pull --quiet & |
7 | cd ~/vimwiki && git pull --quiet & | 7 | cd ~/vimwiki && git pull --quiet & |
8 | check_upstream ~/git/tig & | 8 | check_upstream ~/git/tig & |
9 | check_upstream ~/.vim_runtime & | 9 | check_upstream ~/.vim_runtime & |