Skip to content

Instantly share code, notes, and snippets.

@gabrielpetry
Created April 18, 2019 23:21
Show Gist options
  • Save gabrielpetry/e5a293a9d1819d1634a42562a5f71c16 to your computer and use it in GitHub Desktop.
Save gabrielpetry/e5a293a9d1819d1634a42562a5f71c16 to your computer and use it in GitHub Desktop.
petry.zsh-theme
# vim: ft=zsh
local ret_status="%(?:%{$fg_bold[green]%} :%{$fg_bold[red]%} )"
local host="$USER@%M"
PROMPT='
${host} %{$fg[cyan]%}:%~%{$reset_color%} :$(git_prompt_info)
${ret_status}➜%{$fg[white]%} '
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%} %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment