Class: Vagrant::Util::InstallZSHShellConfig
- Inherits:
-
InstallShellConfig
- Object
- InstallShellConfig
- Vagrant::Util::InstallZSHShellConfig
- Defined in:
- lib/vagrant/util/install_cli_autocomplete.rb
Overview
Install autocomplete script to zsh config located as .zshrc
Constant Summary
Constants inherited from InstallShellConfig
Vagrant::Util::InstallShellConfig::APPEND_STRING, Vagrant::Util::InstallShellConfig::PREPEND_STRING
Instance Attribute Summary
Attributes inherited from InstallShellConfig
#append_string, #config_paths, #prepend_string, #string_insert
Instance Method Summary collapse
-
#initialize ⇒ InstallZSHShellConfig
constructor
A new instance of InstallZSHShellConfig.
Methods inherited from InstallShellConfig
#install, #is_installed, #shell_installed
Constructor Details
#initialize ⇒ InstallZSHShellConfig
Returns a new instance of InstallZSHShellConfig.
82 83 84 85 86 |
# File 'lib/vagrant/util/install_cli_autocomplete.rb', line 82 def initialize string_insert = """fpath=(#{File.join(Vagrant.source_root, "contrib", "zsh")} $fpath)\ncompinit""".freeze config_paths = [".zshrc".freeze].freeze super(string_insert, config_paths) end |