diff --git a/test/unit/plugins/commands/autocomplete/commands/install_test.rb b/test/unit/plugins/commands/autocomplete/commands/install_test.rb
index <HASH>..<HASH> 100644
--- a/test/unit/plugins/commands/autocomplete/commands/install_test.rb
+++ b/test/unit/plugins/commands/autocomplete/commands/install_test.rb
@@ -13,6 +13,16 @@ describe VagrantPlugins::CommandAutocomplete::Command::Install do
     env.create_vagrant_env
   end
 
+  let(:homedir) { Dir.mktmpdir("homedir") }
+
+  before {
+    allow(Dir).to receive(:home) { homedir }
+  }
+
+  after {
+    FileUtils.rm_rf(homedir)
+  }
+
   subject { described_class.new(argv, iso_env) }
 
   let(:action_runner) { double("action_runner") }
Prevent autocomplete install test from messing with real homedir

It just so happens my `~/.bashrc` is not writable by my user (NixOS
humblebrag lol) so this test fails for me locally.

Turns out the test was touching the user's homedir which we probably
don't want anyways, so stub out a tempdir instead.