Minor .zshrc tweaks.

This commit is contained in:
Arthur Khachaturov 2023-12-01 05:12:39 +03:00
parent 58c45aa340
commit 09be919865

22
.zshrc
View file

@ -1,8 +1,5 @@
# keybinds # ls colors
source ~/.zkbd/$TERM-${${DISPLAY:t}:-$VENDOR-$OSTYPE} eval "$(dircolors -b)"
# [[ -n ${key[Left]} ]] && bindkey "${key[Left]}" backward-char
# [[ -n ${key[Right]} ]] && bindkey "${key[Right]}" forward-char
# history # history
HISTSIZE=10000000 HISTSIZE=10000000
SAVEHIST=10000000 SAVEHIST=10000000
@ -15,21 +12,23 @@ setopt hist_find_no_dups
autoload -U select-word-style autoload -U select-word-style
select-word-style b select-word-style b
# misc # options
setopt extendedglob setopt extendedglob
bindkey -e setopt AUTO_PUSHD
# enable alt+arrow movements # keybinds
bindkey -e
bindkey '^[[Z' reverse-menu-complete
bindkey "^[[1;3C" forward-word bindkey "^[[1;3C" forward-word
bindkey "^[[1;5C" forward-word bindkey "^[[1;5C" forward-word
bindkey "^[[1;3D" backward-word bindkey "^[[1;3D" backward-word
bindkey "^[[1;5D" backward-word bindkey "^[[1;5D" backward-word
# completions # completions
zstyle :compinstall filename '/home/wzray/.zshrc' autoload -Uz compinit && compinit
zstyle ':completion:*' menu select zstyle ':completion:*' menu select
autoload -Uz compinit zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
compinit zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}:ma=48;5;8;38;5;15"
# prompt # prompt
autoload -U colors && colors autoload -U colors && colors
@ -48,6 +47,7 @@ alias dt="git --git-dir=$HOME/.dotfiles/git --work-tree=$HOME"
alias rz="exec zsh" alias rz="exec zsh"
alias bat="batcat" alias bat="batcat"
alias ..="cd .." alias ..="cd .."
alias ...="cd ..."
# theming # theming