Added brew for multiple users.
This commit is contained in:
parent
8b351dce12
commit
ca17d69e4a
@ -228,7 +228,7 @@ function ss() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function git_config_string() {
|
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() {
|
function brew_for_multiple_user() {
|
||||||
|
@ -5,6 +5,13 @@ function debian() {
|
|||||||
sudo apt-get -y install git
|
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() {
|
function osx() {
|
||||||
hash gcc &>/dev/null
|
hash gcc &>/dev/null
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
@ -13,6 +20,7 @@ function osx() {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
hash brew &>/dev/null && echo "brew found" || ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
|
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 update
|
||||||
brew install git
|
brew install git
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user