aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/wakeup.sh
blob: d286088a040788b16ea4f531623b9f93d73c0e20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/bash

# Add custom scripts into PATH
export SETTING_DIR=~/helper
export BIN_DIR=$HOME/bin
export PATH=$BIN_DIR:$PATH

mkdir -p $BIN_DIR
find $BIN_DIR -xtype l -exec rm {} + 2>/dev/null
find $SETTING_DIR/bin -type f -executable -exec realpath {} + | \
xargs -I{} ln -sf {} $BIN_DIR

# sync with important git repos
setsid ~/bin/sync.sh &>>/tmp/sync

# Copy context file from vps
rsync -au vps:~/.context ~/.context

date >>/tmp/wakeup