This is my PS1 prompt:
export PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;35m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ " That shows perfect in remote (SSH) console (PTS):
luis@Chomsky:~$ Can not show it, but the full prompt is in violet color.
The problem is: in local (TTY), it shows some ugly:
;luis@Chomsky: ~luis@Chomsky:~$ Can not show it neither, but the first part (from ";" to "~") has no color, and the rest is in violet color.
Additional data: - Using Bash Shell:
luis@Chomsky:~$ ps -p$$ -ocmd= -bash
- Tested in Ubuntu Desktop and Ubuntu Server v14.04 LTS.
- Tested (at least) in a portable ASUS EEE PC and on VirtualBox virtual machine.
- I use to add the
export PS1=line at~/.bashrc.
I would like to know why is this happening and how could I solve it.
Thanks.
PS1?PS1in~/.profile?cat ~/.profile | grep "ps1" -ishows no results, so I think not.