add check if homebrew coreutils is installed.

pull/869/head
Hayden King 2016-12-23 17:35:18 -06:00
parent d21e48e792
commit 225545dc15
1 changed files with 3 additions and 1 deletions

View File

@ -11,10 +11,12 @@ alias l1='ls -1'
alias _="sudo" alias _="sudo"
if [ $(uname) = "Linux" ] if [ $(uname) = "Linux" ] || brew ls --versions coreutils > /dev/null
then then
alias ls="ls --color=auto" alias ls="ls --color=auto"
fi fi
which gshuf &> /dev/null which gshuf &> /dev/null
if [ $? -eq 0 ] if [ $? -eq 0 ]
then then