The __git_ps1
function is generating it. Edit the file the function is defined in.
Understanding weird character syntax in PS1 bash prompt
문제
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 forsu
&sudo
u
- userh
- host- rest chars like
\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.
해결책
제휴하지 않습니다 StackOverflow