Skip to content

Instantly share code, notes, and snippets.

@eramdam
Last active August 29, 2015 14:00
Show Gist options
  • Select an option

  • Save eramdam/11352555 to your computer and use it in GitHub Desktop.

Select an option

Save eramdam/11352555 to your computer and use it in GitHub Desktop.

Revisions

  1. eramdam revised this gist Apr 27, 2014. No changes.
  2. eramdam revised this gist Apr 27, 2014. 2 changed files with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion eramdam.zsh-theme
    Original file line number Diff line number Diff line change
    @@ -19,7 +19,7 @@ PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
    RPS1='${return_code}'

    ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}<"
    ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%)○%{$reset_color%}"
    ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[yellow]%}✓%{$reset_color%}"
    ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}⚡︎%{$reset_color%}"
    ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[yellow]%}>%{$reset_color%} "
    ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE="%{$fg[yellow]%}+%{$reset_color%}"
    Binary file added screen.png
    Loading
    Sorry, something went wrong. Reload?
    Sorry, we cannot display this file.
    Sorry, this file is invalid so it cannot be displayed.
  3. eramdam revised this gist Apr 27, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion eramdam.zsh-theme
    Original file line number Diff line number Diff line change
    @@ -19,7 +19,7 @@ PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
    RPS1='${return_code}'

    ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}<"
    ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}✓%{$reset_color%}"
    ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[yellow]%}✓%{$reset_color%}"
    ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}⚡︎%{$reset_color%}"
    ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[yellow]%}>%{$reset_color%} "
    ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE="%{$fg[yellow]%}+%{$reset_color%}"
  4. eramdam revised this gist Apr 27, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion eramdam.zsh-theme
    Original file line number Diff line number Diff line change
    @@ -19,7 +19,7 @@ PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
    RPS1='${return_code}'

    ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}<"
    ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}%{$reset_color%}"
    ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}%{$reset_color%}"
    ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}⚡︎%{$reset_color%}"
    ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[yellow]%}>%{$reset_color%} "
    ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE="%{$fg[yellow]%}+%{$reset_color%}"
  5. eramdam revised this gist Apr 27, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion eramdam.zsh-theme
    Original file line number Diff line number Diff line change
    @@ -19,7 +19,7 @@ PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
    RPS1='${return_code}'

    ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}<"
    ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%>○%{$reset_color%}"
    ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}%{$reset_color%}"
    ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}⚡︎%{$reset_color%}"
    ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[yellow]%}>%{$reset_color%} "
    ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE="%{$fg[yellow]%}+%{$reset_color%}"
  6. eramdam revised this gist Apr 27, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion eramdam.zsh-theme
    Original file line number Diff line number Diff line change
    @@ -19,7 +19,7 @@ PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
    RPS1='${return_code}'

    ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}<"
    ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%)○%{$reset_color%}"
    ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%>○%{$reset_color%}"
    ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}⚡︎%{$reset_color%}"
    ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[yellow]%}>%{$reset_color%} "
    ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE="%{$fg[yellow]%}+%{$reset_color%}"
  7. eramdam created this gist Apr 27, 2014.
    27 changes: 27 additions & 0 deletions eramdam.zsh-theme
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    # This theme is a modification of the dpoggi one bundled with oh-my-zsh, it features a non-emoji lightning character and some visual tweaks
    function my_git_prompt_info() {
    if [[ "$(git config --get oh-my-zsh.hide-status)" != "1" ]]; then
    ref=$(command git symbolic-ref HEAD 2> /dev/null) || \
    ref=$(command git rev-parse --short HEAD 2> /dev/null) || return
    echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$(git_remote_status)$ZSH_THEME_GIT_PROMPT_SUFFIX"
    fi
    }

    if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
    local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"

    PROMPT='%{$fg[$NCOLOR]%}%n%{$reset_color%}@%{$fg[cyan]%}%m\
    %{$reset_color%}:%{$fg[magenta]%}%~\
    $(my_git_prompt_info)\
    %{$fg[red]%}%(!.#.»)%{$reset_color%} '
    PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
    RPS1='${return_code}'

    ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}<"
    ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%)○%{$reset_color%}"
    ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}⚡︎%{$reset_color%}"
    ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[yellow]%}>%{$reset_color%} "
    ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE="%{$fg[yellow]%}+%{$reset_color%}"
    ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE="%{$fg[yellow]%}-%{$reset_color%}"
    ZSH_THEME_GIT_PROMPT_DIVERGED_REMOTE="%{$fg[yellow]%}±%{$reset_color%}"