Skip to content

Commit

Permalink
config(zsh): improve history
Browse files Browse the repository at this point in the history
  • Loading branch information
haunt98 committed Jun 8, 2024
1 parent 6963542 commit 325bf0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
17 changes: 1 addition & 16 deletions data/atuin/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/zsh/top-zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 325bf0d

Please sign in to comment.