zsh: autocomplete, autocd, and fix moving words

old-yadm
earnest ma 2021-07-01 22:39:39 -04:00
parent 97ad41d627
commit 6aa9c2ed45
No known key found for this signature in database
GPG Key ID: 6B361FA81C5FB695
1 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,8 @@
autoload -U colors && colors autoload -U colors && colors
setopt auto_cd
HISTSIZE=10000 HISTSIZE=10000
SAVEHIST=10000 SAVEHIST=10000
HISTFILE=$XDG_CACHE_HOME/zshhistory HISTFILE=$XDG_CACHE_HOME/zshhistory
@ -19,10 +21,15 @@ echo "Hi"
autoload edit-command-line; zle -N edit-command-line autoload edit-command-line; zle -N edit-command-line
bindkey '^e' 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" [ -f "$E_SCRIPTS_DIR/aliases.sh" ] && source "$E_SCRIPTS_DIR/aliases.sh"
# Run `git -C .config/zsh/autocomplete pull' to update # Run `git -C .config/zsh/autocomplete pull' to update
source $ZDOTDIR/autocomplete/zsh-autocomplete.plugin.zsh 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 # This must be placed at the end
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh