aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2022-01-14 14:50:07 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2022-01-14 14:50:07 +0800
commit54f69e463f2e8e890b6d09799d669b9e6e4363a4 (patch)
tree65eb2026d95111aaaca6ce10d76160f913253695
parent15c44463cdff845fcce49bc8b464a9fd05cb3149 (diff)
update
-rwxr-xr-xtools/init/load-settings.sh7
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
7case $SHELL in 7shell=$(cat /proc/$$/cmdline | tr -d '\0')
8 *zsh) 8case $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 ;;
18esac 19esac