Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试导出来宾 vm 的 $PATH 以便能够使用 minishift 命令。这就是我在 Vagrantfile 中的内容,但不起作用,有什么提示吗?
mvm.vm.provision :shell, :inline => "echo 'export PATH=$PATH:~/minishift-1.7.0-linux-amd64' >>~/.bashrc"
解决方案是下一个:
mvm.vm.provision :shell, :inline => "echo 'export PATH=$PATH:/home/vagrant/minishift-1.7.0-linux-amd64' >>/home/vagrant/.bashrc"
由于某种原因,Vagrant 没有正确解释“~/”