Update multiple things

This commit is contained in:
Justin Lin
2022-08-07 10:18:14 +08:00
parent 8275315dc9
commit 4557f2e97f
16 changed files with 140 additions and 24 deletions

View File

@@ -20,6 +20,10 @@ HISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/zsh/history"
# Basic auto/tab complete:
autoload -U compinit
zstyle ':completion:*' menu select
zstyle -e ':completion:*:hosts' hosts 'reply=(
${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) 2>/dev/null)"}%%[#| ]*}//,/ }
${=${${${${(@M)${(f)"$(cat ~/.ssh/config 2>/dev/null)"}:#Host *}#Host }:#*\**}:#*\?*}}
)'
zmodload zsh/complist
compinit
_comp_options+=(globdots) # Include hidden files.
@@ -80,3 +84,6 @@ bindkey -M visual '^[[P' vi-delete
source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh 2>/dev/null
bindkey "^[[A" history-beginning-search-backward
bindkey "^[[B" history-beginning-search-forward
bindkey "^[[H" beginning-of-line
bindkey "^[[4~" end-of-line
source /usr/share/nvm/init-nvm.sh