diff options
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 |