diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2023-04-24 14:08:03 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2023-04-24 14:08:03 +0800 |
commit | f35ba0dcc24404e0d5cfe8b4b996aacf089155e0 (patch) | |
tree | 151c030e85408d8a4402657066a1970391a86a1c /bin/wakeup.sh | |
parent | df52bee813db5624ec4da9ad08901185e3f24239 (diff) |
Update
Diffstat (limited to 'bin/wakeup.sh')
-rwxr-xr-x | bin/wakeup.sh | 16 |
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 | |||
3 | set -x | ||
4 | |||
5 | # Add custom scripts into PATH | ||
6 | export SETTING_DIR=~/helper | ||
7 | export BIN_DIR=$HOME/bin | ||
8 | export PATH=$BIN_DIR:$PATH | ||
9 | |||
10 | mkdir -p $BIN_DIR | ||
11 | find $BIN_DIR -xtype l -exec rm {} + 2>/dev/null | ||
12 | find $SETTING_DIR/bin -type f -executable -exec realpath {} + | \ | ||
13 | xargs -I{} ln -sf {} $BIN_DIR | ||
14 | |||
15 | # sync with important git repos | ||
16 | setsid ~/bin/check-repos.sh | ||