I would like to add:
function ps_mem {
python /home/vagrant/ps_mem/ps_mem.py -p $@
}
To the end of ~/.bashrc from the command-line. I have tried using:
printf "function ps_mem {\n python /home/vagrant/ps_mem/ps_mem.py -p $@ \n}" >> ~/.bashrc
And while it almost worked, the input field $@ was ignored, making this:
function ps_mem {
python /home/vagrant/ps_mem/ps_mem.py -p
}
Instead, be added to the end of ~/.bashrc.