33 lines
865 B
Bash
33 lines
865 B
Bash
#!/bin/zsh
|
|
# ---------------------------------------------------------------------
|
|
|
|
HISTFILE=~/.histfile
|
|
HISTSIZE=1000
|
|
SAVEHIST=1000
|
|
|
|
setopt appendhistory autocd beep notify HIST_IGNORE_SPACE
|
|
unsetopt nomatch
|
|
|
|
bindkey -v
|
|
|
|
bindkey '^R' history-incremental-search-backward
|
|
|
|
autoload edit-command-line
|
|
zle -N edit-command-line;
|
|
bindkey -M vicmd v edit-command-line;
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
zmodload -i zsh/complist;
|
|
zstyle ':completion:*' completer _complete _ignored _approximate
|
|
zstyle ':completion:*' max-errors 1
|
|
zstyle ':completion:*' menu select;
|
|
bindkey -M menuselect '^M' .accept-line; # don't require 'return' to select menu item
|
|
|
|
autoload -Uz compinit
|
|
compinit
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
which kitty >/dev/null && kitty + complete setup zsh | source /dev/stdin
|