Skip to content

Instantly share code, notes, and snippets.

@fprieur
Last active August 29, 2015 14:14
Show Gist options
  • Save fprieur/3f677099ce7e8edf7ca5 to your computer and use it in GitHub Desktop.
Save fprieur/3f677099ce7e8edf7ca5 to your computer and use it in GitHub Desktop.
vdm - git - mettre nom branch dans bash prompt

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]$ "

vu ici

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment