config(zsh): improve history
parent
69635424e4
commit
325bf0dd94
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue