Module: BinInstall::Zsh
- Defined in:
- lib/bin_install/zsh.rb,
lib/bin_install/zsh/oh_my_zsh.rb
Defined Under Namespace
Modules: OhMyZsh
Class Method Summary collapse
Class Method Details
.install ⇒ Object
9 10 11 12 |
# File 'lib/bin_install/zsh.rb', line 9 def self.install puts 'Installing Zsh...'.white Brew::Package.install_or_upgrade('zsh') end |
.install! ⇒ Object
14 15 16 17 |
# File 'lib/bin_install/zsh.rb', line 14 def self.install! puts 'Installing Zsh...'.white Brew::Package.install_or_upgrade('zsh') end |
.installed? ⇒ Boolean
19 20 21 |
# File 'lib/bin_install/zsh.rb', line 19 def self.installed? Shell.executable_exists?('zsh') end |
.require! ⇒ Object
5 6 7 |
# 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 |