Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have set a number of configurations in my .bashrc file to set the appearance of shell on my Redhat machine. However, when I login as root using Putty, the colours are not shown.

I can enable them again by typing 'su', which simply puts me back to root like I was when I logged into putty, but that isn't exaclty ideal.

Is there some configuration file or something I can use to enable shell colours when I login with Putty?

Thanks

share|improve this question
1  
Try adding the commands to .bash_profile, which is run at login. –  stark Aug 31 '12 at 11:43
    
Hero @stark you were right! Thank you –  Jon Aug 31 '12 at 11:51
add comment

migrated from stackoverflow.com Aug 31 '12 at 15:38

This question came from our site for professional and enthusiast programmers.

1 Answer

Adding the commands to .bash_profile seemed to do the trick, thanks @stark. I thought I tried that but after copying the contents of .bashrc the colours appeared on login =)

share|improve this answer
add comment

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.