Sometimes you find yourself doing a lot of things at a shell prompt which you have to
do on another host later on. So what you want is a script. Yes really. All according
to the motto: Think once,
type once, execute often.
So time to export your command history to a file as a starting point for a
script. The easiest way I found for this is: fc -n -l -100.
Where 100 is the number of lines you need from your history.