aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/wakeup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wakeup.sh')
-rwxr-xr-xbin/wakeup.sh18
1 files changed, 1 insertions, 17 deletions
diff --git a/bin/wakeup.sh b/bin/wakeup.sh
index d286088..4ceee6a 100755
--- a/bin/wakeup.sh
+++ b/bin/wakeup.sh
@@ -1,19 +1,3 @@
1#! /bin/bash 1#! /bin/bash
2 2
3# Add custom scripts into PATH 3date --iso-8601=minutes >~/.wakeup
4export SETTING_DIR=~/helper
5export BIN_DIR=$HOME/bin
6export PATH=$BIN_DIR:$PATH
7
8mkdir -p $BIN_DIR
9find $BIN_DIR -xtype l -exec rm {} + 2>/dev/null
10find $SETTING_DIR/bin -type f -executable -exec realpath {} + | \
11xargs -I{} ln -sf {} $BIN_DIR
12
13# sync with important git repos
14setsid ~/bin/sync.sh &>>/tmp/sync
15
16# Copy context file from vps
17rsync -au vps:~/.context ~/.context
18
19date >>/tmp/wakeup