From 73773c293a31b1d8d6cc7aefc0d8949f105ff161 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 21 Sep 2014 19:09:03 -0700 Subject: [PATCH] Tweaks. --- dotfiles/lib/shellrc.sh | 2 ++ dotfiles/lib/shellrc/brew.sh | 4 ++-- setup.sh | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dotfiles/lib/shellrc.sh b/dotfiles/lib/shellrc.sh index b654004a..20047a1a 100644 --- a/dotfiles/lib/shellrc.sh +++ b/dotfiles/lib/shellrc.sh @@ -10,6 +10,8 @@ add_to_back_of_path "$HOME/.local/lib/python2.6/site-packages" hash brew 2>/dev/null && add_to_front_of_path "$(brew --prefix coreutils)/libexec/gnubin" add_to_front_of_path "/usr/local/bin" +add_to_back_of_path "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/" + for filename in ~/.lib/shellrc/*; do source $filename done diff --git a/dotfiles/lib/shellrc/brew.sh b/dotfiles/lib/shellrc/brew.sh index 3ff21a06..0a383970 100755 --- a/dotfiles/lib/shellrc/brew.sh +++ b/dotfiles/lib/shellrc/brew.sh @@ -119,9 +119,9 @@ function do_the_brew() { esac done echo "Installing the following packages:" - for package_name in "${install_items[@]}"; do printf '\t%s\n' $package_name; done; + for ((i = 0; i < ${#install_items[@]}; i++)); do printf '\t%s\n' "${install_items[$i]}"; done; brew update - brew_install_items $install_items + brew_install_items ${install_items} brew cleanup } diff --git a/setup.sh b/setup.sh index b25b8492..35fe51a0 100755 --- a/setup.sh +++ b/setup.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -cd `dirname $BASH_SOURCE` && source resources/bootstrapping.sh +cd `dirname $BASH_S0;95;cOURCE` && source resources/bootstrapping.sh source dotfiles/lib/shellrc/functions.sh source dotfiles/lib/shellrc/brew.sh source dotfiles/lib/shellrc/python.sh