Skip to content

Commit

Permalink
Don't exclude Authorization headers if they are followed by environme…
Browse files Browse the repository at this point in the history
…nt variable lookup
  • Loading branch information
jgogstad committed Aug 12, 2020
1 parent 2139dd5 commit 509b261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion passwordless-history.plugin.zsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ZSH

HISTORY_EXCLUDE_PATTERN="^ |password|//[^/]+:[^/]+@|(KEY|TOKEN|SECRET)=|Authorization: ?[^\$]"
HISTORY_EXCLUDE_PATTERN='^ |password|//[^/]+:[^/]+@|(KEY|TOKEN|SECRET)=|Authorization: *[^ \$]'

function zshaddhistory() {
emulate -L zsh
Expand Down

0 comments on commit 509b261

Please sign in to comment.