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
|
|
|
|
|
2023-07-19 18:11:19 +00:00
|
|
|
# https://zsh.sourceforge.io/Doc/Release/Parameters.html#Parameters-Used-By-The-Shell
|
2024-05-16 07:31:32 +00:00
|
|
|
export HISTORY_IGNORE="(ls|ll|la|ls *|ll *|la *|cd|pwd|exit|builtin *|*:|z|[*|{*|(*|OA|OB|OC)"
|
2023-07-19 18:11:19 +00:00
|
|
|
export HISTSIZE=100000000
|
|
|
|
export SAVEHIST=$HISTSIZE
|
|
|
|
|
|
|
|
# https://zsh.sourceforge.io/Doc/Release/Options.html
|
|
|
|
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
|
2023-11-12 15:19:14 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
# https://github.com/ohmyzsh/ohmyzsh/wiki/Settings#omzupdate-mode
|
|
|
|
zstyle ':omz:update' mode disabled
|
|
|
|
|
2023-10-06 10:29:02 +00:00
|
|
|
# https://github.com/ohmyzsh/ohmyzsh/wiki/Settings#hyphen_insensitive
|
|
|
|
HYPHEN_INSENSITIVE="true"
|
|
|
|
|
2023-07-17 04:50:01 +00:00
|
|
|
# https://github.com/ohmyzsh/ohmyzsh/issues/5569
|
2023-07-19 18:11:19 +00:00
|
|
|
# https://github.com/ohmyzsh/ohmyzsh/wiki/Settings#disable_magic_functions
|
2023-07-17 04:50:01 +00:00
|
|
|
DISABLE_MAGIC_FUNCTIONS="true"
|
2023-10-06 10:29:02 +00:00
|
|
|
|
|
|
|
# https://github.com/ohmyzsh/ohmyzsh/wiki/Settings#disable_ls_colors
|
|
|
|
DISABLE_LS_COLORS="true"
|
|
|
|
|
2023-07-19 18:11:19 +00:00
|
|
|
# https://github.com/ohmyzsh/ohmyzsh/issues/10291
|
|
|
|
# https://github.com/ohmyzsh/ohmyzsh/wiki/Settings#disable_untracked_files_dirty
|
|
|
|
DISABLE_UNTRACKED_FILES_DIRTY="true"
|
|
|
|
|
2024-02-29 20:33:47 +00:00
|
|
|
# https://github.com/ohmyzsh/ohmyzsh/wiki/Settings#automatic-title
|
|
|
|
DISABLE_AUTO_TITLE=true
|
|
|
|
|
2023-07-27 05:35:55 +00:00
|
|
|
# https://github.com/zsh-users/zsh-autosuggestions#suggestion-strategy
|
|
|
|
typeset -g ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20
|
|
|
|
typeset -g ZSH_AUTOSUGGEST_HISTORY_IGNORE=$HISTORY_IGNORE
|
2024-03-17 09:07:38 +00:00
|
|
|
|
|
|
|
# https://github.com/Aloxaf/fzf-tab
|
|
|
|
zstyle ':completion:*' menu no
|