0
Everytime I log in into my work machine, I have to open a terminal and type the same routine:
$ cd /Documents/some_folder/some_another_folder
$ vagrant up
$ vagrant ssh
I'd like these commands to execute one after another, by just typing something like $ initvm
.
I thought about creating an alias for the $ cd
call inside .bashrc
but then I thought about doing the 3 of them in 1 function or similar. Thing is I am not sure where to define this:
- Define the routine in a
initvm.sh
file andalias
that file inside.bashrc
- Define the routine inside
.bashrc
Can I get some directions on this please?
Use a function in your .bashrc. – Cyrus – 2015-05-16T14:59:41.490