Sha256: 520238aef234c11807c9835278b8b383b074c40a58fe3605ac742de955d5c20f

Contents?: true

Size: 705 Bytes

Versions: 2

Compression:

Stored size: 705 Bytes

Contents

module BinInstall
  module Zsh
    module OhMyZsh
      def self.require!
        abort('Oh My Zsh is required. Visit http://ohmyz.sh/ to install.'.red) unless installed?
      end

      def self.install
        puts 'Installing Oh My Zsh...'.white
        system(%(sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"))
      end

      def self.install!
        puts 'Installing Oh My Zsh...'.white
        BinInstall.system!(%(sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"))
      end

      def self.installed?
        File.exist?(File.expand_path('~/.oh-my-zsh'))
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bin_install-0.0.11 lib/bin_install/zsh/oh_my_zsh.rb
bin_install-0.0.10 lib/bin_install/zsh/oh_my_zsh.rb