Permalink
Browse files

new macs don't have a /usr/local anymore, adding a recipe for multito…

…uch mouse preferences
  • Loading branch information...
1 parent 8bc4c22 commit c2863d94c49e6fbdd99b441218c1ce6fecf64bd8 Matthew Kocher committed Dec 16, 2010
Showing with 18 additions and 1 deletion.
  1. +9 −0 recipes/set_multitouch_preferences.rb
  2. +1 −1 recipes/text_mate.rb
  3. +8 −0 recipes/user_owns_usr_local.rb
@@ -0,0 +1,9 @@
+execute "allow clicking by touch" do
+ command "defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking 1"
+ user WS_USER
+end
+
+execute "allow dragging by touch" do
+ command "defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Dragging 1"
+ user WS_USER
+end
@@ -1,4 +1,4 @@
-## This is very experimental and unsupported.
+include_recipe "pivotal_workstation::user_owns_usr_local"
run_unless_marker_file_exists("text_mate_1_5_10") do
execute "download text mate to temp dir" do
@@ -0,0 +1,8 @@
+directory "/usr/local/bin" do
+ owner WS_USER
+ recursive true
+end
+
+execute "your current user owns /usr/local" do
+ command "chown -R #{WS_USER} /usr/local"
+end

0 comments on commit c2863d9

Please sign in to comment.