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