From 8b351dce12ce08057f126de2a4d86aa303822366 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 25 Aug 2014 22:09:50 -0700 Subject: [PATCH] Add gitignore for dumb vim thing brew for multiple users function. --- .gitignore | 3 ++- dotfiles/lib/shellrc/functions.sh | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1650e409..b31b93a4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .ropeproject -dotfiles/vim/bundle/* \ No newline at end of file +dotfiles/vim/bundle/* +dotfiles/vim/.netrwhist \ No newline at end of file diff --git a/dotfiles/lib/shellrc/functions.sh b/dotfiles/lib/shellrc/functions.sh index 337011a6..142e5213 100644 --- a/dotfiles/lib/shellrc/functions.sh +++ b/dotfiles/lib/shellrc/functions.sh @@ -230,3 +230,10 @@ function ss() { function git_config_string() { git config -f $1 --list | xargs -I kv sh -c "echo "\'kv\'"" } + +function brew_for_multiple_user() { + 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 +}