diff options
Diffstat (limited to 'tools/init')
-rwxr-xr-x | tools/init/load-settings.sh | 15 |
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 |
7 | if [[ $SHELL =~ zsh$ ]]; then | 7 | case $0 in |
8 | setopt extended_glob | 8 | zsh) |
9 | fpath=($SETTING_DIR/zsh $fpath) | 9 | setopt extended_glob |
10 | elif [[ $SHELL =~ bash$ ]]; then | 10 | fpath=($SETTING_DIR/zsh $fpath) |
11 | shopt -s extglob | 11 | ;; |
12 | fi | 12 | bash) |
13 | shopt -s extglob | ||
14 | ;; | ||
15 | esac | ||
13 | 16 | ||
14 | # set default editor | 17 | # set default editor |
15 | export EDITOR=vim | 18 | export EDITOR=vim |