Lots of zsh changes
This commit is contained in:
parent
cd61fb7ff4
commit
4893824aff
15 changed files with 817 additions and 158 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue