Tighten up access to history buffers in shell editor
Refactor shell editor
Refactor Shell Editor