show time right prompt zsh code example
Example: timestamp zsh terminal
# ~/.zshrc
RPROMPT='[%D{%L:%M:%S}] '$RPROMPT # time
RPROMPT="[%D{%f/%m/%y} | %D{%L:%M:%S}]" # date & time
# ~/.zshrc
RPROMPT='[%D{%L:%M:%S}] '$RPROMPT # time
RPROMPT="[%D{%f/%m/%y} | %D{%L:%M:%S}]" # date & time