aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/init
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2021-09-09 12:20:12 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2021-09-09 12:20:12 +0800
commitf4acf456dd8efc21e2b1ac16f5040d6b1d19d9ef (patch)
tree0538c43ec235f8a029d95a95d4ac3d52d114ac7e /tools/init
parente691d35ec858a6d3892a43873018d711f5fb2856 (diff)
update
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