robbyrussell/oh-my-zsh — Issue #836: OpenBSD check for alias 'ls'
Author: slacks42
Created: 2012-01-16 01:04:21+00:00
State: open

Openbsd's 'ls' does not support colors out of the box:

$ ls
ls: unknown option -- G
usage: ls [-1AaCcdFfgHhikLlmnopqRrSsTtux] [file ...]

Suggested fix:

1) check if the user installed /usr/local/bin/colorls and alias ls="/usr/local/bin/colorls -G";
2) if colorls does not exist then remove -G from the alias that is set in ./lib/theme-and-appearance.zsh.

the output of `uname` without arguments should be OpenBSD so it's an easy check to implement.