aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/init
diff options
context:
space:
mode:
Diffstat (limited to 'tools/init')
-rwxr-xr-xtools/init/load-settings.sh15
1 files changed, 9 insertions, 6 deletions
diff --git a/tools/init/load-settings.sh b/tools/init/load-settings.sh
index 1d375d0..1b8b4b7 100755
--- a/tools/init/load-settings.sh
+++ b/tools/init/load-settings.sh
@@ -4,12 +4,15 @@ source $SETTING_DIR/alias
4[[ -d $SETTING_DIR/private ]] && source $SETTING_DIR/private/* 4[[ -d $SETTING_DIR/private ]] && source $SETTING_DIR/private/*
5 5
6# Config shell 6# Config shell
7if [[ $SHELL =~ zsh$ ]]; then 7case $0 in
8 setopt extended_glob 8 zsh)
9 fpath=($SETTING_DIR/zsh $fpath) 9 setopt extended_glob
10elif [[ $SHELL =~ bash$ ]]; then 10 fpath=($SETTING_DIR/zsh $fpath)
11 shopt -s extglob 11 ;;
12fi 12 bash)
13 shopt -s extglob
14 ;;
15esac
13 16
14# set default editor 17# set default editor
15export EDITOR=vim 18export EDITOR=vim