Skip to content

Instantly share code, notes, and snippets.

@CodeBrauer
Created June 8, 2022 12:09
Show Gist options
  • Save CodeBrauer/730791924ac65bbd781238d23616486a to your computer and use it in GitHub Desktop.
Save CodeBrauer/730791924ac65bbd781238d23616486a to your computer and use it in GitHub Desktop.
Show Timestamp in each line for ZSH. Use only one which suits the best for you
#left side with date
PROMPT='%{$fg[yellow]%}[%D %*] '$PROMPT
#left side without date
PROMPT='%{$fg[yellow]%}[%*] '$PROMPT
#right side with date
RPROMPT="[%D %*]"
#right side without date
RPROMPT="[%*]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment