diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2021-10-12 10:55:02 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2021-10-12 10:55:02 +0800 |
commit | 8b1a586da07488b4ca67204a33cb5349666ca9f6 (patch) | |
tree | 8abd6ac345d79e3392348540874326af8751a559 /tools/init/load-settings.sh | |
parent | 6bdea812676fa5c9f6425b24c663ca2aeec522cc (diff) |
update
Diffstat (limited to 'tools/init/load-settings.sh')
-rwxr-xr-x | tools/init/load-settings.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/init/load-settings.sh b/tools/init/load-settings.sh index 1b8b4b7..e12fd13 100755 --- a/tools/init/load-settings.sh +++ b/tools/init/load-settings.sh | |||
@@ -4,12 +4,13 @@ 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 | case $0 in | 7 | case $SHELL in |
8 | zsh) | 8 | *zsh) |
9 | setopt extended_glob | 9 | setopt extended_glob |
10 | fpath=($SETTING_DIR/zsh $fpath) | 10 | fpath=($SETTING_DIR/zsh $fpath) |
11 | setopt extended_glob | ||
11 | ;; | 12 | ;; |
12 | bash) | 13 | *bash) |
13 | shopt -s extglob | 14 | shopt -s extglob |
14 | ;; | 15 | ;; |
15 | esac | 16 | esac |