chore(zsh): improve omz

main
sudo pacman -Syu 2023-07-20 01:11:19 +07:00
parent 53398ba595
commit 399f9d5aee
2 changed files with 32 additions and 32 deletions

View File

@ -1,31 +1,4 @@
# Put this on bottom of ~/.zshrc
# source ~/.config/zsh/bottom-zshrc
# https://zsh.sourceforge.io/Doc/Release/Parameters.html#Parameters-Used-By-The-Shell
export HISTORY_IGNORE="(ls|ll|la|cd|pwd|exit|builtin)"
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
# https://stackoverflow.com/q/12382499
bindkey "^[[1;3C" forward-word
bindkey "^[[1;3D" backward-word
# https://github.com/ohmyzsh/ohmyzsh
zstyle ':omz:update' mode disabled
# https://github.com/romkatv/powerlevel10k
typeset -g POWERLEVEL9K_INSTANT_PROMPT=off
# nvim
if command -v nvim &>/dev/null; then

View File

@ -1,12 +1,39 @@
# Put this on top of ~/.zshrc
# source ~/.config/zsh/top-zshrc
# https://github.com/ohmyzsh/ohmyzsh/issues/5700
DISABLE_AUTO_TITLE="true"
# https://github.com/ohmyzsh/ohmyzsh/issues/10291
DISABLE_UNTRACKED_FILES_DIRTY="true"
# https://zsh.sourceforge.io/Doc/Release/Parameters.html#Parameters-Used-By-The-Shell
export HISTORY_IGNORE="(ls|ll|la|cd|pwd|exit|builtin)"
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
# 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
# https://github.com/ohmyzsh/ohmyzsh/wiki/Settings#case_sensitive
CASE_SENSITIVE="true"
# https://github.com/ohmyzsh/ohmyzsh/issues/5569
# https://github.com/ohmyzsh/ohmyzsh/wiki/Settings#disable_magic_functions
DISABLE_MAGIC_FUNCTIONS="true"
# https://github.com/ohmyzsh/ohmyzsh/issues/10291
# https://github.com/ohmyzsh/ohmyzsh/wiki/Settings#disable_untracked_files_dirty
DISABLE_UNTRACKED_FILES_DIRTY="true"
# https://github.com/romkatv/powerlevel10k#how-do-i-configure-instant-prompt
typeset -g POWERLEVEL9K_INSTANT_PROMPT=off
# https://zellij.dev/documentation/integration.html
if command -v zellij &>/dev/null; then