Created
April 1, 2010 19:39
-
-
Save goozbach/352262 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ls color is different on darwin than linux | |
myvar=$(uname | tr 'A-Z' 'a-z') | |
case $myvar in | |
linux) | |
alias ls='ls -F --color' | |
;; | |
darwin) | |
alias ls='ls -F -G' | |
export LSCOLORS="gxfxbxdxcxegedabagacad" | |
;; | |
sunos) | |
alias ls='ls -F' | |
;; | |
*) | |
alias ls='ls' | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment