diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-01-14 14:50:07 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2022-01-14 14:50:07 +0800 |
commit | 54f69e463f2e8e890b6d09799d669b9e6e4363a4 (patch) | |
tree | 65eb2026d95111aaaca6ce10d76160f913253695 /tools | |
parent | 15c44463cdff845fcce49bc8b464a9fd05cb3149 (diff) |
update
Diffstat (limited to 'tools')
-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 b8fb974..af2f323 100755 --- a/tools/init/load-settings.sh +++ b/tools/init/load-settings.sh | |||
@@ -4,15 +4,16 @@ 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 $SHELL in | 7 | shell=$(cat /proc/$$/cmdline | tr -d '\0') |
8 | *zsh) | 8 | case $shell in |
9 | *zsh*) | ||
9 | setopt extended_glob | 10 | setopt extended_glob |
10 | fpath=($SETTING_DIR/zsh $fpath) | 11 | fpath=($SETTING_DIR/zsh $fpath) |
11 | autoload -U deer | 12 | autoload -U deer |
12 | zle -N deer | 13 | zle -N deer |
13 | bindkey '\ek' deer | 14 | bindkey '\ek' deer |
14 | ;; | 15 | ;; |
15 | *bash) | 16 | *bash*) |
16 | shopt -s extglob | 17 | shopt -s extglob |
17 | ;; | 18 | ;; |
18 | esac | 19 | esac |