User Tools

Site Tools


get:configuring_the_command_prompt_to_show_the_branch

This is an old revision of the document!


Configurer le terminal pour afficher la branche actuelle :

Fichiers concernés :

  • ~/.bash_profile
  • ~/.git_completion.bash

Dans ~/.bash_profile, commenter la ligne relative à l'export PS1 et soit ajouter l'export PS1 suivant dans ~/.git_completion.bash soit en dessous de son indication dans la structure conditionnelle if/fi :

export PS1='\W$__git_ps1 “(%s)”) > '

(ça peut s'améliorer à mon avis avec un if else ou un if !

get/configuring_the_command_prompt_to_show_the_branch.1446852919.txt.gz · Last modified: 2015/11/07 00:35 by leo