Skip to content

Instantly share code, notes, and snippets.

@mparker17
Last active October 5, 2015 21:47
Show Gist options
  • Save mparker17/2881836 to your computer and use it in GitHub Desktop.
Save mparker17/2881836 to your computer and use it in GitHub Desktop.
My ZSH theme
PROMPT='%{$fg[yellow]%}%n%{$reset_color%}@%{$fg[blue]%}%m%{$reset_color%}:%{$fg[red]%}%2~%{$reset_color%} $(git_prompt_info)%# '
ZSH_THEME_GIT_PROMPT_PREFIX="("
ZSH_THEME_GIT_PROMPT_SUFFIX=") "
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[yellow]%}✗%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN=" ✓%{$reset_color%}"
@mparker17
Copy link
Author

@mparker17
Copy link
Author

Turns out you can put this in ~/.oh-my-zsh/custom without Git detecting a file being added to the oh-my-zsh repo, because the custom folder is .gitignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment