diff options
author | Toby Vincent <tobyv13@gmail.com> | 2022-09-15 15:47:07 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2022-09-15 15:47:07 -0500 |
commit | 1f870aa8921468a8a06f9672b1fe16b7ea05c404 (patch) | |
tree | 8ada31ea3921b40870623d457cbc8c91b87ad890 /zsh | |
parent | 2144c89e92a967f7fd1b1ad41e3d3ceb7468ace0 (diff) |
feat(zsh): add zsh-vi-mode plugin to improve zsh's vi mode
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/.config/zsh/.zshrc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 8a4b446..b579661 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -18,6 +18,7 @@ setopt hist_ignore_dups # ignore duplicated commands history list setopt hist_ignore_space # ignore commands that start with space setopt hist_verify # show command with history expansion to user before running it setopt share_history # share command history data +setopt nonomatch zstyle ':completion:*' cache-path $XDG_CACHE_HOME/zsh/zcompcache @@ -28,20 +29,9 @@ alias untar="tar -zxvf" alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"' alias tlmgr='/usr/share/texmf-dist/scripts/texlive/tlmgr.pl --usermode' -bindkey -e -bindkey '^ ' autosuggest-accept -bindkey '^[[Z' reverse-menu-complete -bindkey '^[[1~' beginning-of-line -bindkey '^[[4~' end-of-line -bindkey '^[[3~' delete-char -bindkey '^[[1;5C' forward-word -bindkey '^[[1;5D' backward-word - -# typeset -A ZSH_HIGHLIGHT_STYLES -# export ZSH_HIGHLIGHT_STYLES[path]='fg=cyan' +export SHELDON_PROFILE="$(uname -r | sed 's/^.*-//g' 2>/dev/null)" export ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern line) export ZSH_AUTOSUGGEST_STRATEGY=(match_prev_cmd completion) -# https://github.com/zsh-users/zsh-autosuggestions#suggestion-highlight-style export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#4f4738" if command -v fd >/dev/null 2>&1; then @@ -95,3 +85,13 @@ fi command -v starship >/dev/null 2>&1 && source <(starship init zsh) command -v sheldon >/dev/null 2>&1 && source <(sheldon source) + +zvm_after_init() { + bindkey '^ ' autosuggest-accept + bindkey '^[[Z' reverse-menu-complete + bindkey '^[[1~' beginning-of-line + bindkey '^[[4~' end-of-line + bindkey '^[[3~' delete-char + bindkey '^[[1;5C' forward-word + bindkey '^[[1;5D' backward-word +} |