config(zsh): improve history

main
sudo pacman -Syu 2024-06-09 01:54:46 +07:00
parent 69635424e4
commit 325bf0dd94
2 changed files with 2 additions and 17 deletions

View File

@ -7,22 +7,7 @@ show_preview = true
show_help = false show_help = false
# Sync with data/zsh/top-zshrc # Sync with data/zsh/top-zshrc
history_filter = [ history_filter = ["^l[sal]", "^cd$", "^pwd$", "^exit$", "^z$", '^\[', "O[ABC]"]
"^ls",
"^ll",
"^la",
"^cd$",
"^pwd$",
"^exit$",
"^builtin",
"^z$",
'^\[',
'^\{',
'^\(',
"OA",
"OB",
"OC",
]
store_failed = false store_failed = false
enter_accept = false enter_accept = false

View File

@ -2,7 +2,7 @@
# Put this on top of ~/.zshrc # Put this on top of ~/.zshrc
# https://zsh.sourceforge.io/Doc/Release/Parameters.html#Parameters-Used-By-The-Shell # https://zsh.sourceforge.io/Doc/Release/Parameters.html#Parameters-Used-By-The-Shell
export HISTORY_IGNORE="(ls|ll|la|ls *|ll *|la *|cd|pwd|exit|builtin *|*:|z|[*|{*|(*|OA|OB|OC)" export HISTORY_IGNORE="(l[sal]|l[sal] *|cd|pwd|exit|z|\[*|*O[ABC]*)"
export HISTSIZE=100000000 export HISTSIZE=100000000
export SAVEHIST=$HISTSIZE export SAVEHIST=$HISTSIZE