shell: move static functions out of header

Authored by sandsmark on Sep 24 2017, 12:37 PM.