Last active
August 29, 2015 14:02
-
-
Save garrypolley/4900c3c75a6dd99147b5 to your computer and use it in GitHub Desktop.
My ZSH theme combination of robbyrussell.theme and Soliah.theme
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