Skip to content

Instantly share code, notes, and snippets.

@d4rk5eed
Last active July 26, 2022 13:48
Show Gist options
  • Select an option

  • Save d4rk5eed/d1651aa46e42d91ef96f to your computer and use it in GitHub Desktop.

Select an option

Save d4rk5eed/d1651aa46e42d91ef96f to your computer and use it in GitHub Desktop.

Revisions

  1. d4rk5eed revised this gist Sep 26, 2014. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,8 @@ How to make prompt with git branch in bash gentoo

    1. emerge app-shells/bash-completion
    2. $ find /usr -name git-prompt.sh.bz2
    /usr/share/doc/git-1.8.5.5/git-prompt.sh.bz2

    /usr/share/doc/git-1.8.5.5/git-prompt.sh.bz2
    3. cp /usr/share/doc/git-1.8.5.5/git-prompt.sh.bz2 ~
    4. bunzip2 git-prompt.sh.bz2
    5. mv git-prompt.sh .git-prompt.sh
  2. d4rk5eed revised this gist Sep 26, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ How to make prompt with git branch in bash gentoo

    1. emerge app-shells/bash-completion
    2. $ find /usr -name git-prompt.sh.bz2
    /usr/share/doc/git-1.8.5.5/git-prompt.sh.bz2
    /usr/share/doc/git-1.8.5.5/git-prompt.sh.bz2
    3. cp /usr/share/doc/git-1.8.5.5/git-prompt.sh.bz2 ~
    4. bunzip2 git-prompt.sh.bz2
    5. mv git-prompt.sh .git-prompt.sh
  3. d4rk5eed revised this gist Sep 26, 2014. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,6 @@ How to make prompt with git branch in bash gentoo

    1. emerge app-shells/bash-completion
    2. $ find /usr -name git-prompt.sh.bz2

    /usr/share/doc/git-1.8.5.5/git-prompt.sh.bz2
    3. cp /usr/share/doc/git-1.8.5.5/git-prompt.sh.bz2 ~
    4. bunzip2 git-prompt.sh.bz2
  4. d4rk5eed revised this gist Sep 26, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,7 @@ How to make prompt with git branch in bash gentoo

    1. emerge app-shells/bash-completion
    2. $ find /usr -name git-prompt.sh.bz2

    /usr/share/doc/git-1.8.5.5/git-prompt.sh.bz2
    3. cp /usr/share/doc/git-1.8.5.5/git-prompt.sh.bz2 ~
    4. bunzip2 git-prompt.sh.bz2
  5. d4rk5eed revised this gist Sep 26, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -18,3 +18,5 @@ How to make prompt with git branch in bash gentoo
    export GIT_PS1_SHOWDIRTYSTATE=1

    source ~/.git-prompt.sh

    Use **GIT_PS1_SHOWDIRTYSTATE** for enabling/disabling unmerged code in repository checking.
  6. d4rk5eed revised this gist Sep 26, 2014. 1 changed file with 8 additions and 8 deletions.
    16 changes: 8 additions & 8 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -9,12 +9,12 @@ How to make prompt with git branch in bash gentoo
    5. mv git-prompt.sh .git-prompt.sh
    6. Paste into ~/.bashrc

    # Bash completion
    if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
    fi
    # Bash completion
    if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
    fi
    export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w\[\033[01;33m\]$(__git_ps1)\[\033[01;34m\] \$\[\033[00m\] '
    export GIT_PS1_SHOWDIRTYSTATE=1

    export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w\[\033[01;33m\]$(__git_ps1)\[\033[01;34m\] \$\[\033[00m\] '
    export GIT_PS1_SHOWDIRTYSTATE=1

    source ~/.git-prompt.sh
    source ~/.git-prompt.sh
  7. d4rk5eed created this gist Sep 26, 2014.
    20 changes: 20 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    How to make prompt with git branch in bash gentoo
    =================================================

    1. emerge app-shells/bash-completion
    2. $ find /usr -name git-prompt.sh.bz2
    /usr/share/doc/git-1.8.5.5/git-prompt.sh.bz2
    3. cp /usr/share/doc/git-1.8.5.5/git-prompt.sh.bz2 ~
    4. bunzip2 git-prompt.sh.bz2
    5. mv git-prompt.sh .git-prompt.sh
    6. Paste into ~/.bashrc

    # Bash completion
    if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
    fi

    export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w\[\033[01;33m\]$(__git_ps1)\[\033[01;34m\] \$\[\033[00m\] '
    export GIT_PS1_SHOWDIRTYSTATE=1

    source ~/.git-prompt.sh