diff options
author | andreas@tuxedo-six | 2018-02-10 16:23:38 +0100 |
---|---|---|
committer | andreas@tuxedo-six | 2018-02-10 16:23:38 +0100 |
commit | b9479f2a617bd0325459abde06d54d7e07066d03 (patch) | |
tree | 49d2a93f99a58122c19562e9231aaa6fe3f50ba2 | |
parent | a7b914648a1afcf8e1b19d4365cf382df4e6d551 (diff) | |
parent | 1efc3aaab9d6724fd01522c6d436f7681a13a7ff (diff) | |
download | dotfiles-b9479f2a617bd0325459abde06d54d7e07066d03.zip dotfiles-b9479f2a617bd0325459abde06d54d7e07066d03.tar.gz |
Merge branch 'tuxedoSix-develop'
-rw-r--r-- | src/bin/git-bash.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/bin/git-bash.sh b/src/bin/git-bash.sh new file mode 100644 index 0000000..8df988c --- /dev/null +++ b/src/bin/git-bash.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +# +# Run a bash shell configured for git. +# + +# Select git info displayed, see /usr/lib/git-core/git-sh-prompt for more +# GIT_PS1_SHOWDIRTYSTATE=1 # '*'=unstaged, '+'=staged +# GIT_PS1_SHOWSTASHSTATE=1 # '$'=stashed +# GIT_PS1_SHOWUNTRACKEDFILES=1 # '%'=untracked +# GIT_PS1_SHOWUPSTREAM="verbose" # 'u='=no difference, 'u+1'=ahead by 1 commit +# GIT_PS1_STATESEPARATOR=' ' # Space between branch and index status +# GIT_PS1_DESCRIBE_STYLE="describe" # detached HEAD style: +# contains relative to newer annotated tag (v1.6.3.2~35) +# branch relative to newer tag or branch (master~4) +# describe relative to older annotated tag (v1.6.3.1-13-gdd42c2f) +# default exactly eatching tag + + +GIT_PS1_SHOWDIRTYSTATE=1 \ + GIT_PS1_SHOWSTASHSTATE=1 \ + GIT_PS1_SHOWUNTRACKEDFILES=1 \ + GIT_PS1_SHOWUPSTREAM="verbose" \ + GIT_PS1_STATESEPARATOR=' ' \ + GIT_PS1_DESCRIBE_STYLE="describe" \ + PROMPT_COMMAND='__git_ps1 "\[\e]0;\u@\h: \w\a\]\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]" "\n$ "' \ + bash + |