K
K
Kir Shatrov2011-08-27 12:13:23
bash
Kir Shatrov, 2011-08-27 12:13:23

Terminal highlighting via SSH?

5192da3d.png
Same server, different users. Why doesn't the bottom user have a terminal highlight?
Ubuntu 10.04LTS.
root's
bashrc second user 's bashrc

Answer the question

In order to leave comments, you need to log in

5 answer(s)
S
shadowalone, 2011-08-27
@RazoR_Empire

Add to ~/.bashrc
export PS1='\[\033[01;31m\]\u\[\033[01;33m\]@\[\033[01;36m\]\h \[\033[01;33m\]\w \[\033[01;35m\]\$ \[\033[00m\]'
And it will be as you want

V
Vlad Zhivotnev, 2011-08-27
@inkvizitor68sl

Read about bashrc

S
sl_bug, 2011-08-27
@sl_bug

force_color_prompt=yes uncomment.

A
Andrey Shaydurov, 2011-08-27
@GearHead

because the second user in /etc/passwd needs to specify bash as a terminal, not sh

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question