aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/wakeup.sh
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2023-04-24 14:08:03 +0800
committerHsieh Chin Fan <pham@topo.tw>2023-04-24 14:08:03 +0800
commitf35ba0dcc24404e0d5cfe8b4b996aacf089155e0 (patch)
tree151c030e85408d8a4402657066a1970391a86a1c /bin/wakeup.sh
parentdf52bee813db5624ec4da9ad08901185e3f24239 (diff)
Update
Diffstat (limited to 'bin/wakeup.sh')
-rwxr-xr-xbin/wakeup.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/wakeup.sh b/bin/wakeup.sh
new file mode 100755
index 0000000..7de5f40
--- /dev/null
+++ b/bin/wakeup.sh
@@ -0,0 +1,16 @@
1#! /bin/bash
2
3set -x
4
5# Add custom scripts into PATH
6export SETTING_DIR=~/helper
7export BIN_DIR=$HOME/bin
8export PATH=$BIN_DIR:$PATH
9
10mkdir -p $BIN_DIR
11find $BIN_DIR -xtype l -exec rm {} + 2>/dev/null
12find $SETTING_DIR/bin -type f -executable -exec realpath {} + | \
13xargs -I{} ln -sf {} $BIN_DIR
14
15# sync with important git repos
16setsid ~/bin/check-repos.sh