diff options
-rwxr-xr-x | tools/load-settings.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/load-settings.sh b/tools/load-settings.sh index ee41d00..f33e6b3 100755 --- a/tools/load-settings.sh +++ b/tools/load-settings.sh | |||
@@ -14,16 +14,17 @@ export EDITOR=vim | |||
14 | # load custom aliases | 14 | # load custom aliases |
15 | source $SETTING_DIR/alias | 15 | source $SETTING_DIR/alias |
16 | 16 | ||
17 | # sync with important git repos | ||
18 | $SETTING_DIR/tools/sync.sh | ||
19 | |||
17 | # Add custom scripts into PATH | 20 | # Add custom scripts into PATH |
18 | mkdir -p $HOME/bin | 21 | BIN_DIR=$HOME/bin |
19 | PATH=$PATH:$HOME/bin | 22 | PATH=$PATH:$BIN_DIR |
23 | mkdir -p $BIN_DIR | ||
24 | find $BIN_DIR -xtype l | xargs rm | ||
20 | 25 | ||
21 | find $SETTING_DIR/tools -type f -executable | \ | 26 | find $SETTING_DIR/tools -type f -executable | \ |
22 | xargs realpath | \ | 27 | xargs realpath | xargs -I{} ln -sf {} $BIN_DIR |
23 | xargs -I{} ln -sf {} $HOME/bin | ||
24 | |||
25 | # sync with important git repos | ||
26 | $SETTING_DIR/tools/sync.sh | ||
27 | 28 | ||
28 | # load custom functions | 29 | # load custom functions |
29 | OSM_UTIL_DIR=$SETTING_DIR/tools/osm | 30 | OSM_UTIL_DIR=$SETTING_DIR/tools/osm |
@@ -31,4 +32,3 @@ source $OSM_UTIL_DIR/osm | |||
31 | 32 | ||
32 | # go | 33 | # go |
33 | PATH=$PATH:$HOME/go/bin | 34 | PATH=$PATH:$HOME/go/bin |
34 | |||