Remove unused tasks and add init check for osx task

This commit is contained in:
Henrik Lissner 2014-04-13 16:40:57 -04:00
parent a72aa1b0d1
commit e36f998cca
3 changed files with 8 additions and 6 deletions

View file

@ -41,6 +41,8 @@ namespace :homebrew do
launchbar
java
}.each { |app| Homebrew.install_cask app }
echo "Homebrew is installed. Moving on."
end
task :update => :install do

View file

@ -2,6 +2,11 @@
require_relative 'lib/output'
task :osx do
if `defaults read com.apple.finder _FXShowPosixPathInTitle | grep 1`
echo 'OSX settings already applied!'
next
end
echo "Applying OSX settings"
sh 'chflags nohidden "${HOME}/Library"'
sh 'defaults write NSGlobalDomain KeyRepeat -int 0'

View file

@ -3,7 +3,7 @@ require_relative "lib/output"
require_relative "lib/homebrew"
desc "Ensure vim/macvim is installed and up to date"
task :vim => 'vim:update'
task :vim
namespace :vim do
@ -14,11 +14,6 @@ namespace :vim do
github('hlissner/vim', '~/.vim') unless Dir.exists?(File.expand_path("~/.vim"))
end
task :update => 'vim:install' do
echo "Updating vim..."
Homebrew.update *["lua", "luajit", "vim", "macvim"]
end
desc "Remove vim"
task :remove do
echo "Uninstalling Homebrew"