Executer cette commande dans le terminal
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -o ~/.git-prompt.sh
Ajouter ces lignes à la fin de du fichier ~/.bashrc
- source ~/.git-prompt.sh
- PS1="[$GREEN]\t[$RED]-[$BLUE]\u[$YELLOW][$YELLOW]\w[\033[m][$MAGENTA]$(__git_ps1)[$WHITE]$ "