CuriousMind
CuriousMind

Reputation: 34145

Understanding weird character syntax in PS1 bash prompt

Here is my bash prompt: bash

Here is the PS1 that generates that

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]`__git_ps1`    \$ '

Now, here is the stuff I understand:

What I don't understand is what is generating space AFTER rails and BEFORE (master)? What character does that? I would like to remove that space.

Upvotes: 1

Views: 1019

Answers (1)

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798656

The __git_ps1 function is generating it. Edit the file the function is defined in.

Upvotes: 4

Related Questions