What I'd like to do is run the same command twice while hitting enter once, with minimum typing. This would be the long version for example:
# sudo puppet agent -tv --server foo.bar && sudo puppet agent -tv --server foo.bar
I thought about
# sudo puppet agent -tv --server foo.bar && !!
..but this runs the previous command (as in the last one that completed), rather than the one I've just typed.
So how do I 'backreference' my command?
Of course this could be done with a for loop or something but I'm guessing there's a more bash-ish / sort-cut-ish way of doing this.
Thanks