In this particular case, I\'d like to add a confirm in Bash for
Are you sure? [Y/n]
for Mercurial\'s hg push ssh://username@www.example.com//some
hg push ssh://username@www.example.com//some
This isn't exactly an "asking for yes or no" but just a hack: alias the hg push ... not to hgpushrepo but to hgpushrepoconfirmedpush and by the time I can spell out the whole thing, the left brain has made a logical choice.
hg push ...
hgpushrepo
hgpushrepoconfirmedpush