Remove unused tasks and add init check for osx task
This commit is contained in:
parent
a72aa1b0d1
commit
e36f998cca
|
@ -41,6 +41,8 @@ namespace :homebrew do
|
||||||
launchbar
|
launchbar
|
||||||
java
|
java
|
||||||
}.each { |app| Homebrew.install_cask app }
|
}.each { |app| Homebrew.install_cask app }
|
||||||
|
|
||||||
|
echo "Homebrew is installed. Moving on."
|
||||||
end
|
end
|
||||||
|
|
||||||
task :update => :install do
|
task :update => :install do
|
||||||
|
|
|
@ -2,6 +2,11 @@
|
||||||
require_relative 'lib/output'
|
require_relative 'lib/output'
|
||||||
|
|
||||||
task :osx do
|
task :osx do
|
||||||
|
if `defaults read com.apple.finder _FXShowPosixPathInTitle | grep 1`
|
||||||
|
echo 'OSX settings already applied!'
|
||||||
|
next
|
||||||
|
end
|
||||||
|
|
||||||
echo "Applying OSX settings"
|
echo "Applying OSX settings"
|
||||||
sh 'chflags nohidden "${HOME}/Library"'
|
sh 'chflags nohidden "${HOME}/Library"'
|
||||||
sh 'defaults write NSGlobalDomain KeyRepeat -int 0'
|
sh 'defaults write NSGlobalDomain KeyRepeat -int 0'
|
||||||
|
|
|
@ -3,7 +3,7 @@ require_relative "lib/output"
|
||||||
require_relative "lib/homebrew"
|
require_relative "lib/homebrew"
|
||||||
|
|
||||||
desc "Ensure vim/macvim is installed and up to date"
|
desc "Ensure vim/macvim is installed and up to date"
|
||||||
task :vim => 'vim:update'
|
task :vim
|
||||||
|
|
||||||
namespace :vim do
|
namespace :vim do
|
||||||
|
|
||||||
|
@ -14,11 +14,6 @@ namespace :vim do
|
||||||
github('hlissner/vim', '~/.vim') unless Dir.exists?(File.expand_path("~/.vim"))
|
github('hlissner/vim', '~/.vim') unless Dir.exists?(File.expand_path("~/.vim"))
|
||||||
end
|
end
|
||||||
|
|
||||||
task :update => 'vim:install' do
|
|
||||||
echo "Updating vim..."
|
|
||||||
Homebrew.update *["lua", "luajit", "vim", "macvim"]
|
|
||||||
end
|
|
||||||
|
|
||||||
desc "Remove vim"
|
desc "Remove vim"
|
||||||
task :remove do
|
task :remove do
|
||||||
echo "Uninstalling Homebrew"
|
echo "Uninstalling Homebrew"
|
||||||
|
|
Loading…
Reference in a new issue