module BinInstall::Zsh
Public Class Methods
install()
click to toggle source
# File lib/bin_install/zsh.rb, line 9 def self.install puts 'Installing Zsh...'.white Brew::Package.install_or_upgrade('zsh') end
install!()
click to toggle source
# File lib/bin_install/zsh.rb, line 14 def self.install! puts 'Installing Zsh...'.white Brew::Package.install_or_upgrade('zsh') end
installed?()
click to toggle source
# File lib/bin_install/zsh.rb, line 19 def self.installed? Shell.executable_exists?('zsh') end
require!()
click to toggle source
# File lib/bin_install/zsh.rb, line 5 def self.require! abort('Zsh is required. Visit http://www.zsh.org/ to install.'.red) unless installed? end