From d70ecd3278c17f222b513008820a9cf43914ec03 Mon Sep 17 00:00:00 2001 From: typebrook Date: Sat, 9 Nov 2019 18:23:04 +0800 Subject: update --- Makefile | 4 ---- scripts/load-settings.sh | 9 +++++++++ scripts/my-settings.sh | 8 -------- 3 files changed, 9 insertions(+), 12 deletions(-) create mode 100755 scripts/load-settings.sh delete mode 100755 scripts/my-settings.sh diff --git a/Makefile b/Makefile index f9ef05e..8db654c 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,3 @@ wiki: crontab: (crontab -l 2>/dev/null; cat scripts/*.cron) | crontab - - -# some fix needed -bashrc: - echo "~/git/settings/scripts/sync.sh" >> ~/.bashrc diff --git a/scripts/load-settings.sh b/scripts/load-settings.sh new file mode 100755 index 0000000..94e4bfc --- /dev/null +++ b/scripts/load-settings.sh @@ -0,0 +1,9 @@ +if [[ -z "$SETTING_DIR" ]]; then + SETTING_DIR=$HOME/settings +fi + +# load custom aliases +source $SETTING_DIR/alias.sh + +PATH=$PATH:$SETTING_DIR/scripts +$SETTING_DIR/scripts/sync.sh diff --git a/scripts/my-settings.sh b/scripts/my-settings.sh deleted file mode 100755 index e21aecd..0000000 --- a/scripts/my-settings.sh +++ /dev/null @@ -1,8 +0,0 @@ -if [[ -z "$SETTING_DIR" ]]; then - SETTING_DIR=$HOME/settings -fi - -source $SETTING_DIR/alias.sh - -PATH=$PATH:$SETTING_DIR/scripts -$SETTING_DIR/scripts/sync.sh -- cgit v1.2.3-70-g09d2