Do some crazy stuff with OPTIND to unbreak getopts interoperation.

This commit is contained in:
2014-08-26 12:47:43 -07:00
parent ca17d69e4a
commit d731e62b04
6 changed files with 252 additions and 250 deletions

View File

@@ -119,7 +119,7 @@ function do_the_brew() {
esac
done
echo "Installing the following packages:"
for package_name in "${install_items[@]}"; do echo $package_name; done;
for package_name in "${install_items[@]}"; do printf '\t%s\n' $package_name; done;
brew update
brew_install_items $install_items
brew cleanup

View File

@@ -228,10 +228,10 @@ function ss() {
}
function git_config_string() {
git config -f $1 --list | xargs -I kv sh -c "echo \\\"kv\\\"" | xargs | tr '\n' ' '
git config -f $1 --list | xargs -I kv printf '-c \"%s\" ' kv
}
function brew_for_multiple_user() {
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

View File

@@ -1,4 +1,5 @@
function install_python_packages() {
easy_install pip
ESSENTIAL=(ipdb ipython virtualenv)
FOR_EDITOR=(jedi pyflakes)
USEFUL=(

View File

@@ -1,5 +1,3 @@
function vimstall() {
# This sucks, but BundleInstall fails otherwise.
sudo chmod -R 775 $(readlink -f ~/.vim)
vim +BundleInstall! +q +q
}