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.

When I connect over ssh to remote hosts everything is just a single font/color. I would like to have colours like I do locally e.g. green for executable and blue for symlinks etc. And such that when I run $ git diff on the ssh host it shows me diff with colours =)

share|improve this question
    
Is that an Ubuntu server you're connecting to? –  Stefano Palazzo Dec 5 '10 at 20:42
    
@stefano-palazzo: to Debian. –  Dima Dec 6 '10 at 0:46
add comment

2 Answers

up vote 9 down vote accepted

Hm. since it was xterm on the server, I figured something was wrong with .bashrc

And indeed! --color=auto works only when you are connected to TTY. Changing everything to simply --color in .bashrc and everything is in pretty colours now.

share|improve this answer
    
You should mark this as the answer :) –  djeikyb Feb 23 '11 at 2:44
3  
It would help this answer a lot if you said where you put --color=auto. .bashrc on the server? What commands? –  Randy Fay Aug 24 '13 at 19:37
add comment

What's the content of your XTERM env variable on the server when you connect to it?

~ > export | grep -i term
TERM=xterm
share|improve this answer
    
$ export | grep -i term declare -x TERM="xterm" –  Dima Dec 6 '10 at 0:36
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.