]> id.pley.net Git - dotfiles.git/commitdiff
Add platform-specific aliases for ls.
authorJer Noble <jer.noble@apple.com>
Thu, 26 Apr 2012 15:57:41 +0000 (08:57 -0700)
committerJer Noble <jer.noble@apple.com>
Thu, 26 Apr 2012 15:57:41 +0000 (08:57 -0700)
.aliases

index 57300aeafea6d9efb70470e0ffbbd00be6158387..163f8424ee2dff04d5ed64e3ed1d30f2ff738179 100755 (executable)
--- 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 \a'