2024-11-27 16:03:38 +02:00
|
|
|
# disable the bloody ^S / ^Q
|
2022-08-19 22:37:17 +03:00
|
|
|
stty -ixon
|
|
|
|
setopt APPEND_HISTORY EXTENDED_HISTORY HIST_IGNORE_DUPS EXTENDED_GLOB AUTO_CD AUTO_PUSHD PRINT_EXIT_VALUE
|
|
|
|
unsetopt BEEP NO_MATCH NOTIFY MENU_COMPLETE AUTO_MENU
|
|
|
|
|
|
|
|
SAVEHIST=1000
|
|
|
|
HISTSIZE=1000
|
|
|
|
HISTFILE=$HOME/.histfile.$UID
|
|
|
|
|
2024-11-27 16:03:38 +02:00
|
|
|
EDITOR=vim
|
|
|
|
whence hx >/dev/null && EDITOR=hx
|
|
|
|
|
|
|
|
export EDITOR
|
2022-08-19 22:37:17 +03:00
|
|
|
export LESS='i M R'
|
|
|
|
export PAGER=less
|
|
|
|
export TIME_STYLE=long-iso
|
2022-08-23 16:13:04 +03:00
|
|
|
export ALTERNATE_EDITOR=
|
2022-08-19 22:37:17 +03:00
|
|
|
|
|
|
|
bindkey -e
|
|
|
|
bindkey $terminfo[kdch1] delete-char
|
|
|
|
bindkey $terminfo[khome] beginning-of-line
|
|
|
|
bindkey $terminfo[kend] end-of-line
|
|
|
|
bindkey '^[' vi-cmd-mode
|
|
|
|
|
|
|
|
# autocompletion
|
|
|
|
autoload -Uz compinit
|
|
|
|
|
|
|
|
compinit
|
|
|
|
zstyle ':completion:*' completer _list _complete _ignored
|
|
|
|
zstyle ':completion:*' insert-unambiguous true
|
|
|
|
zstyle ':completion:*' file-sort name
|
|
|
|
zstyle ':completion:*' format 'Completing %d'
|
|
|
|
zstyle ':completion:*' group-name ''
|
|
|
|
zstyle ':completion:*' list-colors ''
|
|
|
|
zstyle ':completion:*' list-prompt '%SAt %p: Hit TAB for more, or the character to insert%s'
|
|
|
|
zstyle ':completion:*' list-suffixes true
|
|
|
|
zstyle ':completion:*' original true
|
|
|
|
zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s'
|
2024-05-06 16:53:16 +03:00
|
|
|
zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' '+l:|=* r:|=*'
|
2022-08-19 22:37:17 +03:00
|
|
|
zstyle ':completion:*' rehash true
|
|
|
|
zstyle ':completion:*:kill:*:processes' command 'ps --forest -A -o pid,user,cmd'
|
|
|
|
zstyle ':completion:*:processes-names' command 'ps axho command'
|
|
|
|
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
|
2022-08-23 16:13:04 +03:00
|
|
|
|
|
|
|
unalias ld ls ll &>/dev/null
|