Skip to content

Instantly share code, notes, and snippets.

@jeanCarloMachado
Created October 11, 2022 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeanCarloMachado/2b6e147e73f76715d0c66060b19b3338 to your computer and use it in GitHub Desktop.
Save jeanCarloMachado/2b6e147e73f76715d0c66060b19b3338 to your computer and use it in GitHub Desktop.
PROMPT="%F{magenta}\$?"
PROMPT=$PROMPT"%F{red}|%F{cyan}\${timer_show}%F{red}"
PROMPT=$PROMPT"%F{red}|%F{green}\$(date "+%H:%M:%S" )"
PROMPT=$PROMPT"%F{red}|%F{yellow}%~"
PROMPT=$PROMPT"%F{red}|%F{blue}\$(git rev-parse --short HEAD 2> /dev/null | tr -d \\n )"
PROMPT=$PROMPT"%F{red}|%F{blue}\$(git rev-parse --abbrev-ref HEAD 2> /dev/null | tr -d \\n)"
PROMPT=$PROMPT'%F{red}>%f '
setopt prompt_subst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment