Sha256: ab5a61a0cafbc6df83a4e73ba24a1c5527b34d528678e6c6439016680b99c45c

Contents?: true

Size: 614 Bytes

Versions: 9

Compression:

Stored size: 614 Bytes

Contents

require 'bin_install/zsh/oh_my_zsh'

module BinInstall
  module Zsh
    def self.require!
      abort('Zsh is required. Visit http://www.zsh.org/ to install.'.red) unless installed?
    end

    def self.install
      puts 'Installing Zsh...'.white
      Brew::Package.install_or_upgrade('zsh')
      Brew::Package.install_or_upgrade('zsh-completions')
    end

    def self.install!
      puts 'Installing Zsh...'.white
      Brew::Package.install_or_upgrade('zsh')
      Brew::Package.install_or_upgrade('zsh-completions')
    end

    def self.installed?
      Shell.executable_exists?('zsh')
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
bin_install-0.0.20 lib/bin_install/zsh.rb
bin_install-0.0.19 lib/bin_install/zsh.rb
bin_install-0.0.18 lib/bin_install/zsh.rb
bin_install-0.0.17 lib/bin_install/zsh.rb
bin_install-0.0.16 lib/bin_install/zsh.rb
bin_install-0.0.15 lib/bin_install/zsh.rb
bin_install-0.0.14 lib/bin_install/zsh.rb
bin_install-0.0.13 lib/bin_install/zsh.rb
bin_install-0.0.12 lib/bin_install/zsh.rb