I have modified my .bashrc to make ls color file like this:
However, it doesn't work when I log on to the machine on SSH. It works if I call "ls --color=auto", but ls alone is still colorless. What am I missing?Code:alias ls='ls --color=auto'
I have modified my .bashrc to make ls color file like this:
However, it doesn't work when I log on to the machine on SSH. It works if I call "ls --color=auto", but ls alone is still colorless. What am I missing?Code:alias ls='ls --color=auto'
Last edited by hojjat; April 19th, 2011 at 08:03 PM.
you'll need to source your .bashrc in .bash_profile (create it if you dont have one)
in it, enter;
Code:[[ -f ~/.bashrc ]] && . ~/.bashrc
Perfect, Thanks!
Bookmarks