Skip to content

Instantly share code, notes, and snippets.

@tancredi
Created October 17, 2013 18:18
Show Gist options
  • Save tancredi/7029702 to your computer and use it in GitHub Desktop.
Save tancredi/7029702 to your computer and use it in GitHub Desktop.
Simplest possible oh-my-zsh theme with git branch and dirty flag
#!/usr/bin/env zsh
PROMPT='%{$terminfo[bold]$fg[red]%}> %{$reset_color%}'
RPROMPT='%{$terminfo[bold]$fg[red]%}$(git_prompt_info) %{$fg[green]%}$(echo $USER)%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}✗%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_PREFIX="("
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment