Skip to content

Commit

Permalink
Re-enable timestamps in Zsh history file (#9)
Browse files Browse the repository at this point in the history
## What

Re-enable saving timestamps in `.zhistory`.

## Why

I believe this was handled by OMZ and the `HIST_STAMPS="yyyy-mm-dd"`
line in `.zshrc` and I completely missed it in the refactor...

## Testing

I verified that my `.zhistory` file includes timestamps after making
this change and reloading Zsh 👍
  • Loading branch information
vicnett authored Nov 3, 2024
1 parent 43d7cfb commit a80dc40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zsh/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ HISTFILE="$ZDOTDIR/.zhistory"
HISTSIZE=10000
SAVEHIST=$HISTSIZE

# Save timestamps in history file
setopt extended_history
# Persistent history file
setopt append_history
# Write to the history file upon running each command, not upon exiting shell
Expand Down

0 comments on commit a80dc40

Please sign in to comment.