aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/init/load-settings.sh14
1 files changed, 5 insertions, 9 deletions
diff --git a/tools/init/load-settings.sh b/tools/init/load-settings.sh
index af2f323..abc9a50 100755
--- a/tools/init/load-settings.sh
+++ b/tools/init/load-settings.sh
@@ -1,5 +1,7 @@
1# load custom aliases
2export SETTING_DIR=${SETTING_DIR:=$HOME/settings} 1export SETTING_DIR=${SETTING_DIR:=$HOME/settings}
2export EDITOR=vim
3
4# load custom aliases
3source $SETTING_DIR/alias 5source $SETTING_DIR/alias
4[[ -d $SETTING_DIR/private ]] && source $SETTING_DIR/private/* 6[[ -d $SETTING_DIR/private ]] && source $SETTING_DIR/private/*
5 7
@@ -9,6 +11,7 @@ case $shell in
9 *zsh*) 11 *zsh*)
10 setopt extended_glob 12 setopt extended_glob
11 fpath=($SETTING_DIR/zsh $fpath) 13 fpath=($SETTING_DIR/zsh $fpath)
14 compinit
12 autoload -U deer 15 autoload -U deer
13 zle -N deer 16 zle -N deer
14 bindkey '\ek' deer 17 bindkey '\ek' deer
@@ -18,9 +21,6 @@ case $shell in
18 ;; 21 ;;
19esac 22esac
20 23
21# set default editor
22export EDITOR=vim
23
24# Add custom scripts into PATH 24# Add custom scripts into PATH
25BIN_DIR=$HOME/bin 25BIN_DIR=$HOME/bin
26PATH=$PATH:$BIN_DIR 26PATH=$PATH:$BIN_DIR
@@ -33,12 +33,8 @@ xargs realpath | xargs -I{} ln -sf {} $BIN_DIR
33# Mail 33# Mail
34MAIL=$HOME/Maildir 34MAIL=$HOME/Maildir
35 35
36# load custom functions
37OSM_UTIL_DIR=$SETTING_DIR/tools/osm
38source $OSM_UTIL_DIR/osm
39
40# sync with important git repos 36# sync with important git repos
41$SETTING_DIR/tools/init/sync.sh 37sync.sh
42 38
43# local 39# local
44PATH=$PATH:$HOME/.local/bin 40PATH=$PATH:$HOME/.local/bin