Skip to content

Instantly share code, notes, and snippets.

@IchHabRecht
Created August 21, 2013 20:36
Show Gist options
  • Save IchHabRecht/6299898 to your computer and use it in GitHub Desktop.
Save IchHabRecht/6299898 to your computer and use it in GitHub Desktop.
[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)")\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment