Created
July 1, 2014 21:57
-
-
Save garrypolley/1811640154bd1e0ebf1f to your computer and use it in GitHub Desktop.
my zsh theme right now for rails development
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)" | |
| PROMPT='${ret_status}%{$fg_bold[green]%}%p$(rvm_gemset)%{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}' | |
| ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
| ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}" | |
| ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" | |
| # Determine if we are using a gemset. | |
| function rvm_gemset() { | |
| GEMSET=`rvm gemset list | grep '=>' | cut -b4-` | |
| if [[ -n $GEMSET ]]; then | |
| echo "%{$fg[magenta]%}$GEMSET%{$reset_color%}@" | |
| fi | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment