diff options
| author | Hsieh Chin Fan <typebrook@gmail.com> | 2021-09-09 12:20:12 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <typebrook@gmail.com> | 2021-09-09 12:20:12 +0800 |
| commit | f4acf456dd8efc21e2b1ac16f5040d6b1d19d9ef (patch) | |
| tree | 0538c43ec235f8a029d95a95d4ac3d52d114ac7e | |
| parent | e691d35ec858a6d3892a43873018d711f5fb2856 (diff) | |
update
| -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 |