From 06f429e38d8f1f75ab5418229c139067ebe90617 Mon Sep 17 00:00:00 2001 From: hjp Date: Tue, 12 Oct 1999 20:15:43 +0000 Subject: [PATCH] Test whether ls supports -h --- .zshrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 774756e..e5bb4cd 100644 --- a/.zshrc +++ b/.zshrc @@ -13,7 +13,12 @@ alias pop=popd alias rd=rmdir alias fixsz='set noglob; eval `resize`;unset noglob' alias ls='ls -F' -alias ll='ls -lFh' +if ls -hld > /dev/null 2>/dev/null +then + alias ll='ls -lFh' +else + alias ll='ls -lF' +fi alias la='ls -alsF' alias cup='cvs -q update -d -P'