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 =)
Colored Terminal Over SSH – How to Enable
command linessh
Best Answer
Because it was xterm on the server, I figured something was wrong with
.bashrc
And indeed!
ls --color=auto
works only when you are connected to TTY. Changing everything to simply--color
in.bashrc
on the remote host and everything is in pretty colours now.