commando: shortcuts: bring back "~" support

(integrated from trunk branch change 73923d0 by Todd Whiteman <toddw@activestate.com>)