Skip to content

Instantly share code, notes, and snippets.

@keil0
Last active February 7, 2023 16:25
Show Gist options
  • Save keil0/057a7905cead40fb866cf5e075b2ee96 to your computer and use it in GitHub Desktop.
Save keil0/057a7905cead40fb866cf5e075b2ee96 to your computer and use it in GitHub Desktop.
Add timestamp to robbyrussell ZSH THEME
# Add timestamp to PROMPT
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
PROMPT='${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
RPROMPT="[%D{%y/%m/%f}|%*]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment