Skip to content

Commit afb3ee6

Browse files
mono0xclaude
andcommitted
Explain the HISTORY_IGNORE pattern
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent b8e7659 commit afb3ee6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/dot_config/zsh/zshrc.d/history.zsh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ setopt share_history # noka: ZC1928
1515

1616
# Applied when lines are written to HISTFILE, so matches stay in the session
1717
# history (reusable with ^p) but out of the file.
18+
# ?(#c,3): up to 3 characters. (cd|ls)(| *): cd/ls alone or with arguments.
1819
HISTORY_IGNORE='(?(#c,3)|(cd|ls)(| *))'

0 commit comments

Comments
 (0)