aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2020-09-08 10:23:29 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2020-09-08 10:23:29 +0800
commit6970e92982e844c17ea5e10e05b53ed9e70ac22f (patch)
tree6dcfdeae1cf050fcbc8d30c3da9e46001528a9c5
parent064650113f938622fa2d63ed52905b0046b74b90 (diff)
update
-rwxr-xr-xtools/load-settings.sh16
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
15source $SETTING_DIR/alias 15source $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
18mkdir -p $HOME/bin 21BIN_DIR=$HOME/bin
19PATH=$PATH:$HOME/bin 22PATH=$PATH:$BIN_DIR
23mkdir -p $BIN_DIR
24find $BIN_DIR -xtype l | xargs rm
20 25
21find $SETTING_DIR/tools -type f -executable | \ 26find $SETTING_DIR/tools -type f -executable | \
22xargs realpath | \ 27xargs realpath | xargs -I{} ln -sf {} $BIN_DIR
23xargs -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
29OSM_UTIL_DIR=$SETTING_DIR/tools/osm 30OSM_UTIL_DIR=$SETTING_DIR/tools/osm
@@ -31,4 +32,3 @@ source $OSM_UTIL_DIR/osm
31 32
32# go 33# go
33PATH=$PATH:$HOME/go/bin 34PATH=$PATH:$HOME/go/bin
34