From f35ba0dcc24404e0d5cfe8b4b996aacf089155e0 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Mon, 24 Apr 2023 14:08:03 +0800 Subject: Update --- bin/wakeup.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bin/wakeup.sh (limited to 'bin/wakeup.sh') 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 @@ +#! /bin/bash + +set -x + +# 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/check-repos.sh -- cgit v1.2.3-70-g09d2