moved bindings to config

This commit is contained in:
Wryn Wagner 2021-09-16 15:09:36 -06:00
parent 12c3d22c4a
commit db37be2025
2 changed files with 9 additions and 9 deletions

View File

@ -1,6 +0,0 @@
#!/bin/zsh
bindkey '^R' history-incremental-search-backward
autoload edit-command-line; zle -N edit-command-line;
bindkey -M vicmd v edit-command-line;

View File

@ -1,6 +1,6 @@
#!/bin/zsh #!/bin/zsh
# ---------------------------------------------------------------------
# --- General ZSH Settings -----------------------------------
HISTFILE=~/.histfile HISTFILE=~/.histfile
HISTSIZE=1000 HISTSIZE=1000
SAVEHIST=1000 SAVEHIST=1000
@ -10,8 +10,14 @@ unsetopt nomatch
bindkey -v bindkey -v
bindkey '^R' history-incremental-search-backward
autoload edit-command-line
zle -N edit-command-line;
bindkey -M vicmd v edit-command-line;
# ---------------------------------------------------------------------
# --- Autocompletion Settings --------------------------------
zmodload -i zsh/complist; zmodload -i zsh/complist;
zstyle ':completion:*' completer _complete _ignored _approximate zstyle ':completion:*' completer _complete _ignored _approximate
zstyle ':completion:*' max-errors 1 zstyle ':completion:*' max-errors 1
@ -21,6 +27,6 @@ bindkey -M menuselect '^M' .accept-line; # don't require 'return' to select menu
autoload -Uz compinit autoload -Uz compinit
compinit compinit
# ---------------------------------------------------------------------
# --- Enable completion in kitty-terminal --------------------
which kitty >/dev/null && kitty + complete setup zsh | source /dev/stdin which kitty >/dev/null && kitty + complete setup zsh | source /dev/stdin