got command history working in shell mode better, new snippets