# vim: set filetype=zsh: # Put this on top of ~/.zshrc # See https://wiki.archlinux.org/title/Zsh # https://lgug2z.com/articles/sensible-wordchars-for-most-developers/ export WORDCHARS='*?[]~&;!#$%^(){}<>' # https://zsh.sourceforge.io/Doc/Release/Parameters.html#Parameters-Used-By-The-Shell export HISTORY_IGNORE="(l[sal]|cd|pwd|exit|z)" export HISTSIZE=100000000 export SAVEHIST=$HISTSIZE # https://zsh.sourceforge.io/Doc/Release/Options.html setopt AUTO_CD setopt HIST_EXPIRE_DUPS_FIRST setopt HIST_FIND_NO_DUPS setopt HIST_IGNORE_ALL_DUPS setopt HIST_IGNORE_DUPS setopt HIST_IGNORE_SPACE setopt HIST_NO_FUNCTIONS setopt HIST_NO_STORE setopt HIST_REDUCE_BLANKS setopt HIST_SAVE_NO_DUPS setopt INC_APPEND_HISTORY_TIME # https://stackoverflow.com/q/12382499 bindkey "^[[1;3C" forward-word bindkey "^[[1;3D" backward-word autoload -Uz compinit compinit