I'm trying to get the following working:
alias banana='emacs /usr/local/nagios/etc/objects/'
So i want to just type "banana firewall.cfg" to edit this file(/usr/local/nagios/etc/objects/firewall.cfg). If i type that, emacs opens two buffers, one for "/usr/local/nagios/etc/objects" in directory edit mode, and the other just as a blank second file called firewall.cfg, which is expected, and obviously the command "bananafirewall.cfg" doesn't work.
I've been scratching my head for a good 30 minutes. Is alias even the right command for this? I guess I could ln -s all these files to /root, but any other suggestions?