diff options
author | typebrook <typebrook@gmail.com> | 2020-03-02 20:34:54 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-03-02 20:34:54 +0800 |
commit | a2497077066d4e26268bdd071851482252e45020 (patch) | |
tree | f8f9c868abda19dd85744db84367966abe3f944b /tools/load-settings.sh | |
parent | af7ce43c718cb6bc0d7aac4633a8113f9a540ec5 (diff) | |
parent | 00b136155183ae522ca458e540a8cf29bf525e74 (diff) |
Merge branch 'dev' of github.com:typebrook/settings into dev
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 | |||