Skip to content

Instantly share code, notes, and snippets.

@bastienapp
Last active July 24, 2018 07:13
Show Gist options
  • Select an option

  • Save bastienapp/80bee694da8b41b1d421532a38f159aa to your computer and use it in GitHub Desktop.

Select an option

Save bastienapp/80bee694da8b41b1d421532a38f159aa to your computer and use it in GitHub Desktop.
git config --global user.name "bastienwcs"
git config --global user.email bastien@wildcodeschool.fr
gedit ~/.bashrc
Remplacer le contenu du bloc : if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
devient :
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWSTASHSTATE=1
export GIT_PS1_SHOWUNTRACKEDFILES=1
export GIT_PS1_SHOWUPSTREAM=auto
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\[\033[0;32m\]$(__git_ps1)\[\033[00m\]\$ '
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment