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 !
(note perso : par défaut sous mac le fichier n'existe pas, et voir aussi : https://github.com/mfitzp/martinfitzpatrick.name/blob/master/content/computing/add-git-branch-name-to-terminal-prompt-mac.md )
get/configuring_the_command_prompt_to_show_the_branch.1447148380.txt.gz · Last modified: 2015/11/10 10:39 by leo