dotfiles/data/zsh/top-zshrc

33 lines
859 B
Plaintext
Raw Normal View History

2023-08-10 18:09:37 +00:00
# vim: set filetype=zsh:
2023-07-17 04:50:01 +00:00
# Put this on top of ~/.zshrc
# See https://wiki.archlinux.org/title/Zsh
# https://lgug2z.com/articles/sensible-wordchars-for-most-developers/
2024-10-18 10:31:27 +00:00
export WORDCHARS='*?[]~&;!#$%^(){}<>'
2023-07-19 18:11:19 +00:00
# https://zsh.sourceforge.io/Doc/Release/Parameters.html#Parameters-Used-By-The-Shell
2024-08-07 07:41:04 +00:00
export HISTORY_IGNORE="(l[sal]|cd|pwd|exit|z)"
2023-07-19 18:11:19 +00:00
export HISTSIZE=100000000
export SAVEHIST=$HISTSIZE
# https://zsh.sourceforge.io/Doc/Release/Options.html
setopt AUTO_CD
2023-07-19 18:11:19 +00:00
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
2023-07-19 18:11:19 +00:00
# https://stackoverflow.com/q/12382499
bindkey "^[[1;3C" forward-word
bindkey "^[[1;3D" backward-word
autoload -Uz compinit
compinit