I would like to use the following scenario for my favorite applications under Linux (Ubuntu 10.10) in order to save grabbing the mouse and clicking them:
- Open a terminal (Ctrl-Alt-D)
- Type my alias for the application (eg: ff for firefox)
- Have the application start and the terminal killed immediately, not when I close the application.
- Define the dimensions and position
of the application using the
For now, I have created the following alias, but it does not behave as described:
alias ff="gnome-terminal --geometry 100x100-0+0 -e 'firefox'; exit"
Instead, it opens a new terminal, kills the first one, and kills the second one upon exiting firefox.
If I try the following instead:
alias ff2="firefox &; exit"
I get the error message:
bash: syntax error near unexpected token `;'
In fact, all these attempts fail:
alias ff="gnome-terminal --geometry 100x100-0+0 -e 'firefox'; exit" alias ff2="firefox &; exit" alias ff3="nohup firefox & ; exit" alias ff4="nohup firefox; exit
How can I obtain the desired behavior?