Skip to content
Browse files

install the homebrew environment

  • Loading branch information...
1 parent 9e425bb commit c074083df86c432a83fe23f29e16780710c39eba @bleything committed
Showing with 30 additions and 0 deletions.
  1. +2 −0 config/example.json
  2. +7 −0 cookbooks/homebrew/files/default/homebrew
  3. +21 −0 cookbooks/homebrew/recipes/environment.rb
View
2 config/example.json
@@ -23,6 +23,8 @@
"recipe[config::sshd]",
"recipe[homebrew]",
+ "recipe[homebrew::environment]"
+ "recipe[homebrew::taps]",
"recipe[homebrew::taps]",
"recipe[homebrew::packages]"
],
View
7 cookbooks/homebrew/files/default/homebrew
@@ -0,0 +1,7 @@
+### set PATH to include homebrew
+PATH=/usr/local/bin:$PATH
+
+### homebrew completion
+if [ -f /usr/local/etc/bash_completion ]; then
+ source /usr/local/etc/bash_completion
+fi
View
21 cookbooks/homebrew/recipes/environment.rb
@@ -0,0 +1,21 @@
+#
+# Cookbook Name:: homebrew
+# Recipe:: environment
+#
+# Copyright 2012, Ben Bleything <ben@bleything.net>
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+directory "#{ENV['HOME']}/.bash.d"
+cookbook_file "#{ENV['HOME']}/.bash.d/homebrew"

0 comments on commit c074083

Please sign in to comment.
Something went wrong with that request. Please try again.