Skip to content

Instantly share code, notes, and snippets.

@zulhfreelancer
zulhfreelancer / zsh-timestamp.md
Last active January 9, 2025 08:45
How to add timestamp on right hand side of ZSH / iTerm2 terminal prompt?

Add the following snippet at the bottom of ~/.zshrc file.

Option 1 - Just time

RPROMPT='[%D{%L:%M:%S}] '$RPROMPT