diff options
author | typebrook <typebrook@gmail.com> | 2020-02-27 16:32:37 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-02-27 16:32:37 +0800 |
commit | 00b136155183ae522ca458e540a8cf29bf525e74 (patch) | |
tree | c6e9d20d5021c95afc7149456d57eb435d808150 /tools/load-settings.sh | |
parent | 3fa79eb14a4c0244fb2dc4a5b805b7cffaa63770 (diff) |
update
Diffstat (limited to 'tools/load-settings.sh')
-rwxr-xr-x | tools/load-settings.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/load-settings.sh b/tools/load-settings.sh new file mode 100755 index 0000000..30a29b0 --- /dev/null +++ b/tools/load-settings.sh | |||
@@ -0,0 +1,24 @@ | |||
1 | if [[ -z "$SETTING_DIR" ]]; then | ||
2 | SETTING_DIR=$HOME/settings | ||
3 | fi | ||
4 | |||
5 | # load custom aliases | ||
6 | source $SETTING_DIR/alias | ||
7 | |||
8 | # Add custom scripts into PATH | ||
9 | PATH=$PATH:$SETTING_DIR/tools | ||
10 | find $SETTING_DIR/tools -type d | sed 1d |\ | ||
11 | while read dir; do | ||
12 | PATH=$PATH:$dir | ||
13 | done | ||
14 | |||
15 | # sync with important git repos | ||
16 | $SETTING_DIR/tools/sync.sh | ||
17 | |||
18 | # load custom functions | ||
19 | OSM_UTIL_DIR=$SETTING_DIR/tools/osm | ||
20 | source $OSM_UTIL_DIR/osm | ||
21 | |||
22 | # go | ||
23 | PATH=$PATH:$HOME/go/bin | ||
24 | |||