Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've changed ~/.bashrc file of root and my own account.

The problem is (maybe because of my encypted home directory): when I log in to my normal account: no color, when I log in as root: color! But then no DIRECT access to encrypted directory.

Also when I log in to my normal account and type:

su no

(no is my normal account username) I get color!

Where is the other place that color gets set?

I use PS1 all the time and change it based on what's happening in my system... Its very nice, but when i log in as my normal account I do NOT get color.

I'm currently executing a one liner command to search every file for PS1= (I'm sure my command is wrong, but whatever):

echo "$(find *)" | xargs grep PS1 | grep PS1

Correct command was:

echo "$(find *)" | xargs grep .* | grep PS1=
share|improve this question
    
That one-liner is hideous, use grep -R 'PS1=' ./ –  Steven Kath Nov 16 '13 at 20:56
    
Haha my first weeks on linux:) but i think Bash regular expressions are hideous ^.^ –  Leathan Nov 19 '13 at 14:43

1 Answer 1

cat /etc/bash.bashrc | grep PS1=

pico /etc/bash.bashrc

Edit the line you saw with first command.

My problem is that .bashrc was not working and apparently a default of /etc/bash.bashrc is used even prior authentication. Modifying this file solved my problem totally .

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.