From 6aa9c2ed45638b316978f422bb7a54875ebe7fe8 Mon Sep 17 00:00:00 2001 From: earnest ma Date: Thu, 1 Jul 2021 22:39:39 -0400 Subject: [PATCH] zsh: autocomplete, autocd, and fix moving words --- .config/zsh/.zshrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 77d2ce8..755a1cc 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -3,6 +3,8 @@ autoload -U colors && colors +setopt auto_cd + HISTSIZE=10000 SAVEHIST=10000 HISTFILE=$XDG_CACHE_HOME/zshhistory @@ -19,10 +21,15 @@ echo "Hi" autoload edit-command-line; zle -N edit-command-line bindkey '^e' edit-command-line +bindkey "^[[1;5C" forward-word +bindkey "^[[1;5D" backward-word + [ -f "$E_SCRIPTS_DIR/aliases.sh" ] && source "$E_SCRIPTS_DIR/aliases.sh" # Run `git -C .config/zsh/autocomplete pull' to update source $ZDOTDIR/autocomplete/zsh-autocomplete.plugin.zsh +zstyle ':autocomplete:*' min-input 1 +zstyle ':autocomplete:*' min-delay 0.25 # This must be placed at the end source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh