From 4876f76a161e380a4fbf6ce61ef69f0c3a7cd418 Mon Sep 17 00:00:00 2001 From: Jer Noble Date: Thu, 26 Apr 2012 08:57:41 -0700 Subject: [PATCH 1/1] Add platform-specific aliases for ls. --- .aliases | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.aliases b/.aliases index 57300ae..163f842 100755 --- a/.aliases +++ b/.aliases @@ -1,11 +1,14 @@ #!/bin/bash # The following aliases vary depending on the host OS: -if [[ "x$(uname -s)" == "xLinux" ]]; then - alias ls='ls -F --color=auto' -elif [[ "x$(uname -s)" == "xDarwin" ]]; then - alias ls='ls -FG' -fi +case "$(uname -s)" in + Linux ) + alias ls='ls -F --color=auto' + ;; + Darwin ) + alias ls='ls -FG' + ;; +esac alias m='pine' alias beep='echo ' -- 2.40.1