From 18309505b8a9fc53cdf9cd0bad5adff4ac43b7e5 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Tue, 18 Jan 2022 22:54:01 +0800 Subject: update --- tools/init/load-settings.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'tools') 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 @@ -# load custom aliases export SETTING_DIR=${SETTING_DIR:=$HOME/settings} +export EDITOR=vim + +# load custom aliases source $SETTING_DIR/alias [[ -d $SETTING_DIR/private ]] && source $SETTING_DIR/private/* @@ -9,6 +11,7 @@ case $shell in *zsh*) setopt extended_glob fpath=($SETTING_DIR/zsh $fpath) + compinit autoload -U deer zle -N deer bindkey '\ek' deer @@ -18,9 +21,6 @@ case $shell in ;; esac -# set default editor -export EDITOR=vim - # Add custom scripts into PATH BIN_DIR=$HOME/bin PATH=$PATH:$BIN_DIR @@ -33,12 +33,8 @@ xargs realpath | xargs -I{} ln -sf {} $BIN_DIR # Mail MAIL=$HOME/Maildir -# load custom functions -OSM_UTIL_DIR=$SETTING_DIR/tools/osm -source $OSM_UTIL_DIR/osm - # sync with important git repos -$SETTING_DIR/tools/init/sync.sh +sync.sh # local PATH=$PATH:$HOME/.local/bin -- cgit v1.2.3-70-g09d2