aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/load-settings.sh
blob: e6415e090dec4271bd6b9ee8770bd2a243d3bcc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
if [[ -z "$SETTING_DIR" ]]; then
    SETTING_DIR=$HOME/settings
fi

# set default editor
export EDITOR=vim

# load custom aliases
source $SETTING_DIR/alias

# Add custom scripts into PATH
PATH=$PATH:$SETTING_DIR/tools
find $SETTING_DIR/tools -type d | sed 1d |\
while read dir; do
    PATH=$PATH:$dir
done

# sync with important git repos
$SETTING_DIR/tools/sync.sh

# load custom functions
OSM_UTIL_DIR=$SETTING_DIR/tools/osm
source $OSM_UTIL_DIR/osm

# go
PATH=$PATH:$HOME/go/bin