Results 1 to 3 of 3

Thread: Bash profile colors on SSH

  1. #1
    Join Date
    Sep 2007
    Beans
    250

    Bash profile colors on SSH

    I have modified my .bashrc to make ls color file like this:

    Code:
    alias ls='ls --color=auto'
    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?
    Last edited by hojjat; April 19th, 2011 at 08:03 PM.

  2. #2
    Join Date
    Mar 2011
    Beans
    370

    Re: Bash profile colors on SSH

    you'll need to source your .bashrc in .bash_profile (create it if you dont have one)
    in it, enter;
    Code:
    [[ -f ~/.bashrc ]] && . ~/.bashrc

  3. #3
    Join Date
    Oct 2006
    Beans
    6
    Distro
    Ubuntu 6.06

    Re: Bash profile colors on SSH

    Perfect, Thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •