Add the following line into your
alias ofm=`gnome-open .
Make sure to include the dot at the end.
source ~/.bashrc and you should now be able to run
ofm within a terminal to open your file manager at the same directory your terminal is currently in.
This post was build with Ubuntu Mate in mind, but any Linux distro using the Gnome file manager should work fine.