[BASH] Enable git tab completion
# 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)")\$ '
# 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
0 B
|π
/π