Reputation: 34145
Here is my bash prompt:
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:
$debian_chroot
- used for su
& sudo
u
- userh
- host\033
are for colors.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
Reputation: 798656
The __git_ps1
function is generating it. Edit the file the function is defined in.
Upvotes: 4