Last active
August 5, 2021 13:11
-
-
Save JuanMiguelGM/c192c8a6fa57d30c5c8c617ebd6ab7f3 to your computer and use it in GitHub Desktop.
zsh theme
This file contains 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
CRUNCH_BRACKET_COLOR="%{$fg_bold[blue]%}" | |
CRUNCH_RVM_COLOR="%{$fg[yellow]%}" | |
if [ -e ~/.rvm/bin/rvm-prompt ]; then | |
CRUNCH_RVM_="$CRUNCH_BRACKET_COLOR"["$CRUNCH_RVM_COLOR\${\$(~/.rvm/bin/rvm-prompt i v g)#ruby-}$CRUNCH_BRACKET_COLOR"]"%{$reset_color%}" | |
else | |
if which rbenv &> /dev/null; then | |
CRUNCH_RVM_="$CRUNCH_BRACKET_COLOR"["$CRUNCH_RVM_COLOR\${\$(rbenv version | sed -e 's/ (set.*$//' -e 's/^ruby-//')}$CRUNCH_BRACKET_COLOR"]"%{$reset_color%}" | |
fi | |
fi | |
GIT_INFO='$(git_prompt_info)' | |
PROMPT="$CRUNCH_RVM_%{$fg_bold[green]%}%p%{$fg[cyan]%}%c%{$fg_bold[blue]%}$GIT_INFO%{$fg_bold[blue]%} % %{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_PREFIX="(%{$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]%})" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment