How do i navigate to httpd_vhosts.conf in xammp from the terminal?
I guess you need 3 directories to configure Xammp on OSX.

/Applications/XAMPP/xamppfiles/etc/httpd.conf
/Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf
/etc/hosts


you can open file from within the terminal for editing using e.g. nano

nano /Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf


you can then edit it and save changes using Ctrl+O.