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
# Sync with data/zsh/top-zshrc
history_filter = [
"^ls",
"^ll",
"^la",
"^cd$",
"^pwd$",
"^exit$",
"^builtin",
"^z$",
'^\[',
'^\{',
'^\(',
"OA",
"OB",
"OC",
]
history_filter = ["^l[sal]", "^cd$", "^pwd$", "^exit$", "^z$", '^\[', "O[ABC]"]
store_failed = false
enter_accept = false

View File

@ -2,7 +2,7 @@
# Put this on top of ~/.zshrc
# 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 SAVEHIST=$HISTSIZE