Like a looong build.
Obviousely you need to have nethack.
Less obviousely, you also need tmux
because I use tmux
. Sorry ;)
Just put play-nethack-while
somewhere in your PATH
and make it executable
($ chmod a+x /usr/local/bin/play-nethack-while
).
Then, when you're about to start that dull, long running process that makes you think of Maud, do:
$ play-nethack-while make release
If nethack
is already running in your tmux
session, play-nethack-while
will now just switch to this window. If not, nethack
will be started in a
new window.
As soon as the long running process has finished, play-nethack-while
will
automatically switch back to the last used window (what's supposed to be the
one you started the long running process in) and you can resume with whatever
you need to do.