Class: Vagrant::Util::InstallBashShellConfig
- Inherits:
-
InstallShellConfig
- Object
- InstallShellConfig
- Vagrant::Util::InstallBashShellConfig
- Defined in:
- lib/vagrant/util/install_cli_autocomplete.rb
Overview
Install autocomplete script to bash config located as .bashrc or .bash_profile
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 ⇒ InstallBashShellConfig
constructor
A new instance of InstallBashShellConfig.
Methods inherited from InstallShellConfig
#install, #is_installed, #shell_installed
Constructor Details
#initialize ⇒ InstallBashShellConfig
Returns a new instance of InstallBashShellConfig.
91 92 93 94 95 |
# File 'lib/vagrant/util/install_cli_autocomplete.rb', line 91 def initialize string_insert = ". #{File.join(Vagrant.source_root, 'contrib', 'bash', 'completion.sh')}".freeze config_paths = [".bashrc".freeze, ".bash_profile".freeze].freeze super(string_insert, config_paths) end |