Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to add aliases to vagrant vm .bashrc file

I'm trying to provision a vm with some alias and keep getting permision denied, wondering what the proper way of doing this is:

end of Vagrant file (this works): config.vm.provision :shell, :path => "provision.sh"

in provision.sh: echo "alias alias1=\"some command\"" >> .bashrc

error: /tmp/vagrant-shell: line 6: .bashrc: Read-only file system

like image 684
dismal Avatar asked Oct 21 '22 00:10

dismal


1 Answers

this ended up being a coreOS issue (I think it has to do with it's read only file system or something like that, I should have mentioned it in the question), I ended up using Ubuntu for my VM (I'm only using the VM to run Docker) and the above command in your comment/my original question ended up working.

like image 182
dismal Avatar answered Oct 24 '22 00:10

dismal