Permalink
Browse files

Fixing homebrew, again. Whoops.

  • Loading branch information...
cowboy committed Jul 14, 2012
1 parent 1ee3660 commit ed085aedefb65ae627c9e890b4419ab48c8454e9
Showing with 17 additions and 5 deletions.
  1. +1 −0 bin/dotfiles
  2. +3 −5 init/10_osx.sh
  3. +13 −0 source/50_osx.sh
View
@@ -133,6 +133,7 @@ if [[ ! "$(type -P git)" ]]; then
if [[ ! "$(type -P brew)" ]]; then
e_header "Installing Homebrew"
/usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
+ e_header "Updating Homebrew"
brew update
fi
# If Homebrew was installed, install Git.
View
@@ -4,17 +4,15 @@
# Install Homebrew.
if [[ ! "$(type -P brew)" ]]; then
e_header "Installing Homebrew"
- /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
+ /usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
fi
-# Update Homebrew.
if [[ "$(type -P brew)" ]]; then
+ # Update Homebrew.
e_header "Updating Homebrew"
brew update
-fi
-# Install Homebrew recipes.
-if [[ "$(type -P brew)" ]]; then
+ # Install Homebrew recipes.
recipes=(git node tree sl lesspipe id3tool nmap git-extras htop man2html)
list="$(to_install "${recipes[*]}" "$(brew list)")"
View
@@ -34,6 +34,19 @@ function vm_template() {
open -g "$vm_dir/$vm_name"
}
+function vm_template_create() {
+ local vm_dir="$HOME/Documents/Parallels"
+ local vm_templates_dir="$vm_dir/Templates"
+ local vm_name="${@%/}"
+ local vm_backup="$vm_templates_dir/$(basename "$vm_name").zip"
+ if [[ -e "$vm_backup" ]]; then
+ echo "VM template \"$vm_name\" already exists, aborting"
+ return 1
+ fi
+ echo "Creating template..." &&
+ zip -r "$vm_backup" "$vm_dir/$vm_name"
+}
+
# Export Localization.prefPane text substitution rules.
function txt_sub_backup() {
local prefs=~/Library/Preferences/.GlobalPreferences.plist

0 comments on commit ed085ae

Please sign in to comment.