Using bash aliases inside vagrant ssh

Published 3 weeks ago by empyrean

So my bash aliases are working great everywhere except when I'm inside vagrant ssh:

[email protected]ead:~$ gc -bash: gc: command not found

Is there anyway to make the aliases from my .bashrc file available in here as well? I'm on windows X

Best Answer (As Selected By empyrean)
rumm.an

Aliases you create on your machine are not available in vagrant shell. Because that virtual machine is different. What you can do is try to create your own aliases in virtual shell, sperately. This should do the job.

rumm.an

Aliases you create on your machine are not available in vagrant shell. Because that virtual machine is different. What you can do is try to create your own aliases in virtual shell, sperately. This should do the job.

empyrean

Thanks dude, i did just that and it's working like a charm now. For those wondering, you just need to create .bashrc file in home directory on your virtual machine and then you can just paste in your aliases from .bashrc from your local machine.

rumm.an

great job! @empyrean

Please sign in or create an account to participate in this conversation.