Skip to content

Instantly share code, notes, and snippets.

@jarhart
Created August 14, 2013 17:35
Show Gist options
  • Select an option

  • Save jarhart/6233397 to your computer and use it in GitHub Desktop.

Select an option

Save jarhart/6233397 to your computer and use it in GitHub Desktop.

Revisions

  1. jarhart created this gist Aug 14, 2013.
    33 changes: 33 additions & 0 deletions jarhart.zsh-theme
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    theme_jarhart() {

    ZSH_PROMPT_BASE_COLOR="%{$fg_bold[black]%}"
    ZSH_THEME_REPO_NAME_COLOR="%{$fg[cyan]%}"

    ZSH_THEME_GIT_PROMPT_PREFIX=" $ZSH_PROMPT_BASE_COLOR($ZSH_THEME_REPO_NAME_COLOR"
    ZSH_THEME_GIT_PROMPT_SUFFIX="$ZSH_PROMPT_BASE_COLOR)"
    ZSH_THEME_GIT_PROMPT_CLEAN=''
    ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}✗"

    ZSH_THEME_HG_PROMPT_PREFIX=" ("
    ZSH_THEME_HG_PROMPT_SUFFIX=''
    ZSH_THEME_HG_PROMPT_CLEAN=')'
    ZSH_THEME_HG_PROMPT_DIRTY="%{$fg[yellow]%}✗$ZSH_PROMPT_BASE_COLOR)"

    ZSH_THEME_RVM_PROMPT_OPTIONS=(i v g)
    ZSH_THEME_RVM_PROMPT_PREFIX="%{$fg[red]%}"
    ZSH_THEME_RVM_PROMPT_SUFFIX="%{$reset_color%}"

    local cwd="%{$fg_bold[blue]%}%~$ZSH_PROMPT_BASE_COLOR"

    local repo_prompt_info='$(git_prompt_info)$(hg_prompt_info)'

    local prompt_char=" $ZSH_PROMPT_BASE_COLOR%(!.#.») "

    PROMPT="$cwd$repo_prompt_info$prompt_char%{$reset_color%}"

    RPROMPT='$(rvm_prompt_info)'

    ZSH_THEME_TERM_TITLE_IDLE="%~"
    }

    theme_jarhart