Add these following lines in ~/.bash_profile file
1) alias goextra='cd /Applications/xampp/xamppfiles/etc/extra'
2). alias editvhost='sublime httpd-vhosts.conf'
and run " . ~/.bash_profile " .
and please run goextra and editvhost in your terminal respectively.
When you run editvhost httpd-vhosts.conf will be opened.
Add following lines to the file. You can also use the dummy lines in the file as reference.
Options Indexes FollowSymLinks Includes ExecCGI
Require all granted
3). alias edithost='sudo sublime /etc/hosts'
Add following line in #Virtual Hosts section of the hosts file.
# Virtual Hosts
Restart your Apache on xampp.
You are good to go.
If you have any question or better way to do this or to share your ideas, please leave a comment or send me an email at firstname.lastname@example.org or tweet me @lynnnayko
Thank you very much for your time.