diff options
| author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-01-18 22:54:01 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <typebrook@gmail.com> | 2022-01-18 22:54:01 +0800 |
| commit | 18309505b8a9fc53cdf9cd0bad5adff4ac43b7e5 (patch) | |
| tree | b4f9c213feead2b0e617c1534c5b407f0361243c /tools | |
| parent | 54f69e463f2e8e890b6d09799d669b9e6e4363a4 (diff) | |
update
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/init/load-settings.sh | 14 |
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 | ||
| 2 | export SETTING_DIR=${SETTING_DIR:=$HOME/settings} | 1 | export SETTING_DIR=${SETTING_DIR:=$HOME/settings} |
| 2 | export EDITOR=vim | ||
| 3 | |||
| 4 | # load custom aliases | ||
| 3 | source $SETTING_DIR/alias | 5 | source $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 | ;; |
| 19 | esac | 22 | esac |
| 20 | 23 | ||
| 21 | # set default editor | ||
| 22 | export EDITOR=vim | ||
| 23 | |||
| 24 | # Add custom scripts into PATH | 24 | # Add custom scripts into PATH |
| 25 | BIN_DIR=$HOME/bin | 25 | BIN_DIR=$HOME/bin |
| 26 | PATH=$PATH:$BIN_DIR | 26 | PATH=$PATH:$BIN_DIR |
| @@ -33,12 +33,8 @@ xargs realpath | xargs -I{} ln -sf {} $BIN_DIR | |||
| 33 | 33 | ||
| 34 | MAIL=$HOME/Maildir | 34 | MAIL=$HOME/Maildir |
| 35 | 35 | ||
| 36 | # load custom functions | ||
| 37 | OSM_UTIL_DIR=$SETTING_DIR/tools/osm | ||
| 38 | source $OSM_UTIL_DIR/osm | ||
| 39 | |||
| 40 | # sync with important git repos | 36 | # sync with important git repos |
| 41 | $SETTING_DIR/tools/init/sync.sh | 37 | sync.sh |
| 42 | 38 | ||
| 43 | # local | 39 | # local |
| 44 | PATH=$PATH:$HOME/.local/bin | 40 | PATH=$PATH:$HOME/.local/bin |