If you want to execute one command and then another one after the first one finish, you can execute
which prints the PID of the process executing
You can then think of what you want to do after
command1 has finished and execute:
wait [PID printed by the previous command] && command2
However, this only works in the same terminal window and gets really, really messy if
command1 prints output. If you open up a new terminal window and try to wait, you're shown something like this:
$ wait 10668 bash: wait: pid 10668 is not a child of this shell
Is there a terminal emulator which supports waiting for programs without having to write the next command in the output of the currently executing command without throwing the output of the first command away (like piping it to
It doesn't have to work via
wait or something similar. Right-clicking and choosing "execute after current command returned" would be perfectly fine.
I don't mean simply concatenating commands but being able to run a command and then decide on what to run right after that one finished.