diff options
| author | Hsieh Chin Fan <typebrook@gmail.com> | 2020-09-08 10:23:29 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <typebrook@gmail.com> | 2020-09-08 10:23:29 +0800 |
| commit | 6970e92982e844c17ea5e10e05b53ed9e70ac22f (patch) | |
| tree | 6dcfdeae1cf050fcbc8d30c3da9e46001528a9c5 /tools | |
| parent | 064650113f938622fa2d63ed52905b0046b74b90 (diff) | |
update
Diffstat (limited to 'tools')
| -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 | |||