0
I have made alias for running certain program and i have put it in .bashrc
file.
I want to close current terminal
inside the script. I've tried this but it is not working.
alias mp='java -jar myprogram.jar & && kill $(echo $$)'
it seems that it can't kill itself. working os is ubuntu 12.04.