Lots of zsh changes

This commit is contained in:
Jonathan Hodgson 2020-03-11 11:30:54 +00:00
parent cd61fb7ff4
commit 4893824aff
15 changed files with 817 additions and 158 deletions

View file

@ -1,3 +1,18 @@
# Make completion work
autoload -U compinit
zstyle ':completion:*' menu select
# Auto complete with case insenstivity
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
zmodload zsh/complist
compinit
#
# Use vim keys in tab complete menu: (thanks Luke Smith: https://github.com/LukeSmithxyz/voidrice/)
bindkey -M menuselect 'h' vi-backward-char
bindkey -M menuselect 'k' vi-up-line-or-history
bindkey -M menuselect 'l' vi-forward-char
bindkey -M menuselect 'j' vi-down-line-or-history
bindkey -v '^?' backward-delete-char
compdef sshrc=ssh
autoload bashcompinit
@ -21,6 +36,7 @@ _wp_complete() {
}
complete -o nospace -F _wp_complete wp
# Include hidden files in autocomplete:
_comp_options+=(globdots)
fpath+="$(dirname $0)/completion"
#source "$ZSH_FOLDER/plugins/fzf-tab/fzf-tab.zsh"