26
May
5

Color ls on OpenBSD

To get color ls output on OpenBSD, get a recent version of ports and then do the following:

  1. cd /usr/ports/sysutils/colorls
  2. make install
  3. set your TERM to wsvt25
  4. /usr/local/bin/colorls -G should now display similar to the GNU ls with the color option
  5. Set the appropriate alias for your shell.
Enjoyed reading this post?
Subscribe to the RSS feed and have all new posts delivered straight to you.
5 Comments:
  1. Mostafa Faridi 5 Mar, 2008

    how to set my TERM to wsvt25
    I am new user in OpenBSD

  2. elektranox 20 Mar, 2008

    export TERM=wsvt25

  3. Mehdi 17 Jun, 2009

    Hello;
    Thanks for the quick info.
    I am also new to BSD so would setting ports interfere with anything else? This is our main server and I dont want to change anything.

    I use ls –color in ubuntu to get color ls but BSD does not have that option.

    Also I can edit my .bashrc file and change it where the color ls shows up every time I log in. Is there a similar file under OpenBSD as well?

    Thanks very much for your help!

    Regards;

  4. jake 21 Oct, 2009

    Thanks for the info! I was looking in ports and i also found, /usr/ports/misc/fileutils, thats supposed to do the same thing. I don’t know what the difference is.

  5. jake 21 Oct, 2009

    Smee again, colorls seems better. The fileutils one needs quite a few dependencies to be installed.

Post your comment



Celadon theme by the Themes Boutique