Added brew for multiple users.

This commit is contained in:
Ivan Malison 2014-08-25 22:46:00 -07:00
parent 8b351dce12
commit ca17d69e4a
2 changed files with 9 additions and 1 deletions

View File

@ -228,7 +228,7 @@ function ss() {
}
function git_config_string() {
git config -f $1 --list | xargs -I kv sh -c "echo "\'kv\'""
git config -f $1 --list | xargs -I kv sh -c "echo \\\"kv\\\"" | xargs | tr '\n' ' '
}
function brew_for_multiple_user() {

View File

@ -5,6 +5,13 @@ function debian() {
sudo apt-get -y install git
}
function brew_for_multiple_users() {
sudo chgrp -R admin /usr/local
sudo chmod -R g+w /usr/local
sudo chgrp -R admin /Library/Caches/Homebrew
sudo chmod -R g+w /Library/Caches/Homebrew
}
function osx() {
hash gcc &>/dev/null
if [ $? -ne 0 ]
@ -13,6 +20,7 @@ function osx() {
exit
fi
hash brew &>/dev/null && echo "brew found" || ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew_for_multiple_users
brew update
brew install git
}