From: Jer Noble Date: Thu, 26 Apr 2012 15:57:41 +0000 (-0700) Subject: Add platform-specific aliases for ls. X-Git-Url: http://id.pley.net/dotfiles.git/commitdiff_plain/4876f76a161e380a4fbf6ce61ef69f0c3a7cd418?ds=sidebyside Add platform-specific aliases for ls. --- 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 '