From 373df190c6eb2a501dad24a4b7c706831b921c10 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Wed, 6 Mar 2013 15:29:53 -0500 Subject: Use colorls where available under OpenBSD --- .zshrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index 6f95a83..9556184 100644 --- a/.zshrc +++ b/.zshrc @@ -135,9 +135,11 @@ if [[ `uname` = "Linux" ]]; then alias chown="chown -v" alias chmod="chmod -v" + alias ls="ls --classify --color=always" # Add all colours and + # have fancy symbols for files, etc. +elif [[ `uname` = "OpenBSD" && -x /usr/local/bin/colorls ]]; then + alias ls="colorls -G" fi -alias ls="SUBSTS_LS --classify --color=always" # Add all colours and - # have fancy symbols for files, etc. # Cause encfs unmount a mounted encrypted partition after twenty minutes of # inactivity by default. -- cgit v1.2.3