IchHabRecht icon

[BASH] Enable git tab completion

IchHabRecht | PRO | 11/20/12 02:01:30 PM UTC | 0 ⭐ | 270 πŸ‘οΈ | Never ⏰ | []
Bash |

210 B

|

None

|

0 πŸ‘

/

0 πŸ‘Ž

# Enable current git branch to bash promt
# nano /root/.bashrc
if [ -f /etc/bash_completion.d/git ]; then
Β  Β  . /etc/bash_completion.d/git
fi
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w $(__git_ps1 "(%s)")\$ '

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž