aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xtools/init/load-settings.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/init/load-settings.sh b/tools/init/load-settings.sh
index 64bd4e5..1c7b65d 100755
--- a/tools/init/load-settings.sh
+++ b/tools/init/load-settings.sh
@@ -7,7 +7,7 @@ source $SETTING_DIR/alias
7[[ -d $SETTING_DIR/private ]] && for f in $SETTING_DIR/private/*; do source $f; done 7[[ -d $SETTING_DIR/private ]] && for f in $SETTING_DIR/private/*; do source $f; done
8 8
9# Config shell 9# Config shell
10shell=$(</proc/$$/cmdline tr -cd '[:alpha:]') 10shell=$(</proc/$$/cmdline tr -d '\0' | xargs basename)
11 11
12# fzf 12# fzf
13if which fzf &>/dev/null; then 13if which fzf &>/dev/null; then
@@ -19,17 +19,17 @@ if [[ $shell == zsh ]]; then
19 setopt extended_glob 19 setopt extended_glob
20 fpath=($SETTING_DIR/zsh $fpath) 20 fpath=($SETTING_DIR/zsh $fpath)
21 compinit 21 compinit
22 autoload -U deer
23 zle -N deer
24 bindkey '\ek' deer
25 alias history='history -i' 22 alias history='history -i'
26 23
27 bindkey -s "^I" 'fzf_preview ' 24 #autoload -U deer
25 #zle -N deer
26 #bindkey '\ek' deer
27 bindkey -s '\ek' 'fzf_preview '
28elif [[ $shell == bash ]]; then 28elif [[ $shell == bash ]]; then
29 shopt -s extglob 29 shopt -s extglob
30 HISTTIMEFORMAT='%Y-%m-%d %T ' 30 HISTTIMEFORMAT='%Y-%m-%d %T '
31 31
32 bind -x '"\C-i":"fzf_preview"' 32 bind -m emacs-standard -x '"\ek": fzf_preview'
33fi 33fi
34 34
35# Add custom scripts into PATH 35# Add custom scripts into PATH