Advertisement
IchHabRecht

[BASH] Enable git tab completion

Nov 20th, 2012
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 KB | None | 0 0
  1. # Enable current git branch to bash promt
  2. # nano /root/.bashrc
  3. if [ -f /etc/bash_completion.d/git ]; then
  4.     . /etc/bash_completion.d/git
  5. fi
  6. PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w $(__git_ps1 "(%s)")\$ '
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement