From 29cd701772dab0da588260656b0e720a302f1003 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Thu, 19 Jul 2012 15:57:06 -0400 Subject: [PATCH] Only use -v and --color on Linux systems. --- .bashrc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.bashrc b/.bashrc index 3ef02f9..fc749d9 100755 --- a/.bashrc +++ b/.bashrc @@ -1,7 +1,13 @@ # Common parameters -alias ls='ls -v --color=auto' -alias ll='ls -val' -alias grep='grep --color' +if [ "$OSTYPE" == "linux-gnu" ]; then + alias ls='ls -v --color=auto' + alias ll='ls -lav' + alias grep='grep --color' +else + alias ls='ls' + alias ll='ls -la' + alias grep='grep' +fi # Case insensitive matching shopt -s nocaseglob