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