The pump telescopes a few inches, is spring loaded, and so can be simply wedged into place, also the ends are curved in a U shape so they won't pop out of where they are wedged.
Iuse the same location on two bikes. The only problem I have is water splashing on the pump and settling inside the handle.