diff options
Diffstat (limited to 'tools/load-settings.sh')
-rwxr-xr-x | tools/load-settings.sh | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/tools/load-settings.sh b/tools/load-settings.sh deleted file mode 100755 index 66ec879..0000000 --- a/tools/load-settings.sh +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | if [[ $0 == 'zsh' ]]; then | ||
2 | setopt extended_glob | ||
3 | elif [[ $0 == 'bash' ]]; then | ||
4 | shopt -s extglob | ||
5 | fi | ||
6 | |||
7 | # set default editor | ||
8 | export EDITOR=vim | ||
9 | |||
10 | # load custom aliases | ||
11 | SETTING_DIR=${SETTING_DIR:=$HOME/settings} | ||
12 | source $SETTING_DIR/alias | ||
13 | |||
14 | # Add custom scripts into PATH | ||
15 | BIN_DIR=$HOME/bin | ||
16 | PATH=$PATH:$BIN_DIR | ||
17 | mkdir -p $BIN_DIR | ||
18 | find $BIN_DIR -xtype l | xargs rm 2>/dev/null || true | ||
19 | |||
20 | find $SETTING_DIR/tools -type f -executable | \ | ||
21 | xargs realpath | xargs -I{} ln -sf {} $BIN_DIR | ||
22 | |||
23 | # load custom functions | ||
24 | OSM_UTIL_DIR=$SETTING_DIR/tools/osm | ||
25 | source $OSM_UTIL_DIR/osm | ||
26 | |||
27 | # sync with important git repos | ||
28 | $SETTING_DIR/tools/sync.sh | ||
29 | |||
30 | # go | ||
31 | PATH=$PATH:$HOME/go/bin | ||