Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Apr 17, 2013
  1. Add upstream state to PS1

    Lewis Marshall authored
Commits on Mar 7, 2013
  1. @phatblat
  2. @phatblat

    Suppress git errors when building PS1.

    phatblat authored
    Makes moving outside repos much less noisy.
Commits on Mar 5, 2013
  1. @phatblat
  2. @richardkmichael
  3. @phatblat
Commits on Jan 24, 2013
  1. Fix _git_dirty so that it works with git

    Heikki Hulkko authored
    Since [1] "git status" on a clean tree displays
    "nothing to commit, working directory clean" instead of
    "nothing to commit, (working directory clean)"
    [1] git/git@50bd8b7#L0R1050
Commits on Sep 18, 2011
  1. remove bundle top-level alias

Commits on Aug 28, 2011
  1. Merge remote-tracking branch 'alex-morega/dirty-stash'

Commits on Aug 19, 2011
  1. @mgax
  2. @mgax
Commits on Feb 21, 2011
  1. allow git alias commands with single quotes

    This works around alias commands like:
      lg = log --graph --all --pretty=format:'blah blah'
    It makes it impossible to use double-quotes however.
    Closes #7
Commits on Mar 30, 2010
  1. git-sh.bash is noexpandtab

Commits on Mar 28, 2010
Commits on May 18, 2009
  1. @Daenyth

    Fix _git_dirty doing the opposite of what it should

    Daenyth authored committed
Commits on Apr 9, 2009
  1. @Daenyth

    git-sh.bash: Changed the "dirty" marker to be configurable

    Daenyth authored
    git config --add gitsh.dirty 'marker here'
    Signed-off-by: Daenyth <>
Commits on Mar 9, 2009
  1. add git config values for all prompt colors

    The,, and config
    values can be set to customize the colors used in the prompt.
  2. prompt refactoring / work around bash 4.0 PROMPT_COMMAND issue

    There's what appears to be a strange bug in bash 4.0 where using the
    "$()" interpolation syntax from within a function called by
    PROMPT_COMMAND causes bash not to display the PS1. Using backticks
    instead of "$()" seems to work around the issue.
    Here's an example of what fails (the prompt is never displayed):
        _setup_prompt() {
          foo=$(echo this can be anything)
          PS1="hello> "
    But this works:
        _setup_prompt() {
          foo=`echo this can be anything`
          PS1="hello> "
Commits on Mar 8, 2009
  1. @Daenyth

    update prompt setup to check for "dirty" status

    Daenyth authored committed
    A quick visual indication of commit status. When there's nothing to
    commit, prompt is normal.  When the working directory is "dirty",
    display an indication (" *")
    Signed-off-by: Daenyth Blank <>
    Signed-off-by: Ryan Tomayko <>
Commits on Nov 30, 2008
  1. add top-level reflog alias

Commits on Nov 26, 2008
  1. @mbrubeck

    Upgrade to the latest git-completion.bash

    mbrubeck authored
    (now with git-svn completion!)
Commits on Oct 8, 2008
  1. disable prompt color by default; add config

    This change requires that the '' config value be
    enabled to get prompt color:
      $ git config auto
    The --get-color arg used to determine the ANSI colors for the
    prompt is apparently fairly new so users with older versions
    of git were receiving a warning each time the prompt was
    displayed. Older versions of git will not be able to use color
    in the prompt but they won't get the annoying warning either.
    Thanks to Xavier Shay (
    for reporting the issue.
Commits on Sep 21, 2008
  1. gitalias command; update .gitshrc example file

    gitalias functions exactly like bash's alias builtin
    but automatically adds bash completion for the aliased
      gitalias ci='git commit --verbose'
    the gitcomplete command is used by gitalias. see comments on
    the function for more info.
    while here, take a pass over the README and update the
    example .gitshrc file to use gitalias.
Commits on Sep 17, 2008
Commits on Aug 8, 2008
  1. readline wonkiness workarounds

    still not perfect -- I get different results based on whether
    horizontal-wrap-mode is set. prompt+color+readline = sucks.
Commits on Aug 4, 2008
  1. grab PS1 colors from git-config(1)

    While here, use the _git_XXX convention for prompt related
  2. add ap as copyright holder

    ... seeing as he just replaced a large portion of the
    original work :)
  3. redirect pushd/popd output to /dev/null

    I feel like I'm missing something here...
Something went wrong with that request. Please try again.