Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify how to enable timestamps in history (#6109) #6589

Closed
wants to merge 1 commit into from

Conversation

CristianCantoro
Copy link
Contributor

(see also #6109 for further info)

The comment in the .zshrc is not very clear about the fact that you also need to change the alias of history to display timestamps.

(see also ohmyzsh#6109 for further info)

The comment is not very clear about the fact that you need to also change the alias of `history` to display timestamps.
@mcornella
Copy link
Member

This is not necessary because the alias is automatically set up in lib/history.zsh.

@mcornella mcornella closed this Apr 22, 2018
@CristianCantoro
Copy link
Contributor Author

For some reason it was not working for me, see also #6109. Would you be interested in a pull-request to enable showing a custom format for timestamps?

@mcornella
Copy link
Member

I think it would be a nice addition. I think the easiest way is using the same HIST_STAMPS variable to set the custom format and then aliasing to omz_history -t $HIST_STAMPS in case neither of the already predefined 3 formats are set. Have a quick look at lib/history.zsh and you'll see what I mean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants