Created
October 31, 2012 15:23
-
-
Save denniskong/3987641 to your computer and use it in GitHub Desktop.
oh my 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
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
local rvm_ruby='' | |
if which rvm-prompt &> /dev/null; then | |
rvm_ruby='%{$fg_bold[blue]%}rmv:(%{$fg[red]%}$(rvm-prompt i v g)%{$fg_bold[blue]%})%{$reset_color%} ' | |
else | |
if which rbenv &> /dev/null; then | |
rvm_ruby='%{$fg_bold[blue]%}rbenv:(%{$fg[red]%}$(rbenv version | sed -e "s/ (set.*$//")%{$fg_bold[blue]%})%{$reset_color%} ' | |
fi | |
fi | |
local red_arrow='%{$fg_bold[red]%}➜% %{$reset_color%}' | |
local user_host='%{$fg_bold[green]%}%n@%m:%{$fg[cyan]%}%~' | |
local git_branch='%{$fg_bold[blue]%}$(git_prompt_info)' | |
PROMPT="${red_arrow} ${user_host} ${rvm_ruby}${git_branch} | |
${red_arrow} " | |
RPS1="${return_code}" | |
#RPROMPT="RIGHT PROMPT" | |
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]%})" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment