Why is `source /home/vagrant/.bashrc` not working in a Vagrant shell provisioning script?

后端 未结 1 520
后悔当初
后悔当初 2021-02-14 21:29

I\'m having problems with a shell provisioning script used by Vagrant, as it\'s not executing source /home/vagrant/.bashrc. I\'ve reduced the problem down to this..

1条回答
  •  终归单人心
    2021-02-14 21:57

    You need to remove the “exit if not running interactively” bit (e.g. [ -z "$PS1" ] && return) from the top of your .bashrc.

    0 讨论(0)
提交回复
热议问题